mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-30 22:00:51 +08:00
Merge commit 'aaeef7fa0d6ebb1a3668894e67a70cd5084ce4f4' into release/1.1
* commit 'aaeef7fa0d6ebb1a3668894e67a70cd5084ce4f4': mjpegdec: properly report unsupported disabled features Prepare for 9.7 Release update Changelog proresdec: support mixed interlaced/non-interlaced content Conflicts: RELEASE libavcodec/mjpegdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -13,6 +13,7 @@ version <next>:
|
||||
- indeo3: use unaligned reads on reference blocks, Bug #503
|
||||
- oma: properly forward errors in oma_read_packet
|
||||
- af_asyncts: fix offset calculation
|
||||
- proresdec: support mixed interlaced/non-interlaced content
|
||||
|
||||
Most of the following fixes resulted from test samples that the Google
|
||||
Security Team has kindly made available to us:
|
||||
|
||||
@@ -1676,6 +1676,13 @@ int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
|
||||
mjpeg_decode_com(s);
|
||||
|
||||
ret = -1;
|
||||
|
||||
if (!CONFIG_JPEGLS_DECODER &&
|
||||
(start_code == SOF48 || start_code == LSE)) {
|
||||
av_log(avctx, AV_LOG_ERROR, "JPEG-LS support not enabled.\n");
|
||||
return AVERROR(ENOSYS);
|
||||
}
|
||||
|
||||
switch (start_code) {
|
||||
case SOI:
|
||||
s->restart_interval = 0;
|
||||
|
||||
@@ -164,6 +164,8 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf,
|
||||
if (ctx->frame_type) { /* if interlaced */
|
||||
ctx->picture.interlaced_frame = 1;
|
||||
ctx->picture.top_field_first = ctx->frame_type & 1;
|
||||
} else {
|
||||
ctx->picture.interlaced_frame = 0;
|
||||
}
|
||||
|
||||
avctx->color_primaries = buf[14];
|
||||
|
||||
Reference in New Issue
Block a user