summaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg12.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-19 14:55:07 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-19 15:44:59 +0100
commit642a655f7d9a6afc97fff5f3ecd6a7ad5d53e0ca (patch)
treeb09ea65812ccdada345d88802afa71016e1b357e /libavcodec/mpeg12.c
parente84194f06024892fc33684c5a1726c97a0c0a45c (diff)
parentf1d8763a02b5fce9a7d9789e049d74a45b15e1e8 (diff)
downloadffmpeg-streaming-642a655f7d9a6afc97fff5f3ecd6a7ad5d53e0ca.zip
ffmpeg-streaming-642a655f7d9a6afc97fff5f3ecd6a7ad5d53e0ca.tar.gz
Merge commit 'f1d8763a02b5fce9a7d9789e049d74a45b15e1e8'
* commit 'f1d8763a02b5fce9a7d9789e049d74a45b15e1e8': mpegvideo: allocate scratch buffers after linesize is known Conflicts: libavcodec/mpegvideo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r--libavcodec/mpeg12.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index e32cce0..8aa836e 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -2492,7 +2492,10 @@ static int decode_chunks(AVCodecContext *avctx,
thread_context->end_mb_y = s2->mb_height;
if (s->slice_count) {
s2->thread_context[s->slice_count-1]->end_mb_y = mb_y;
- ff_update_duplicate_context(thread_context, s2);
+ ret = ff_update_duplicate_context(thread_context,
+ s2);
+ if (ret < 0)
+ return ret;
}
init_get_bits(&thread_context->gb, buf_ptr, input_size*8);
s->slice_count++;
OpenPOWER on IntegriCloud