diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-03 00:05:35 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-03 00:06:22 +0200 |
commit | 8c118207ea0b2fa4a1e8e54f19965c7dfda3755c (patch) | |
tree | 8293671919c90f4ea0dba16df583a13522a4a6e9 | |
parent | 406632d1ef448ca6ada969b2f72707a6449a4046 (diff) | |
parent | aaeef7fa0d6ebb1a3668894e67a70cd5084ce4f4 (diff) | |
download | ffmpeg-8c118207ea0b2fa4a1e8e54f19965c7dfda3755c.tar.gz |
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>
-rw-r--r-- | Changelog | 1 | ||||
-rw-r--r-- | libavcodec/mjpegdec.c | 7 | ||||
-rw-r--r-- | libavcodec/proresdec_lgpl.c | 2 |
3 files changed, 10 insertions, 0 deletions
@@ -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: diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index b1aff360d2..a59ba3b046 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -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; diff --git a/libavcodec/proresdec_lgpl.c b/libavcodec/proresdec_lgpl.c index 4fa2817e86..a25ecca3c9 100644 --- a/libavcodec/proresdec_lgpl.c +++ b/libavcodec/proresdec_lgpl.c @@ -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]; |