diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-20 12:18:28 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-20 12:18:28 +0100 |
commit | 41135b7f64e699a71250b0c2082ba53b0338069a (patch) | |
tree | 722cfb318703cc777579faa3d1996f8c340d35cf /libavcodec/mpeg12.c | |
parent | 40ea3438661e6cc30b60bc019ae01fb073eabb35 (diff) | |
parent | b2fe6756e34d1316d0fa799e8a5ace993059c407 (diff) | |
download | ffmpeg-41135b7f64e699a71250b0c2082ba53b0338069a.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
lavr: add option for dithering during sample format conversion to s16
mpeg12: do not decode extradata more than once.
Conflicts:
libavcodec/mpeg12.c
libavcodec/mpeg12.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 8aa836e7bb..8f028f3b5c 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -2558,13 +2558,13 @@ static int mpeg_decode_frame(AVCodecContext *avctx, s->slice_count = 0; - if (avctx->extradata && !s->parsed_extra) { + if (avctx->extradata && !s->extradata_decoded) { ret = decode_chunks(avctx, picture, got_output, avctx->extradata, avctx->extradata_size); if(*got_output) { av_log(avctx, AV_LOG_ERROR, "picture in extradata\n"); *got_output = 0; } - s->parsed_extra = 1; + s->extradata_decoded = 1; if (ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE)) { s2->current_picture_ptr = NULL; return ret; |