pthread: copy coded frame dimensions in update_context_from_thread
authorRonald S. Bultje <rsbultje@gmail.com>
Fri, 14 Oct 2011 21:46:06 +0000 (23:46 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Nov 2011 00:23:28 +0000 (01:23 +0100)
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
(cherry picked from commit feadcd1bdcbb4601f4ff01878027264fde985ee1)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/pthread.c

index fb5c2f1..4feecba 100644 (file)
@@ -332,6 +332,9 @@ static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src,
         dst->height    = src->height;
         dst->pix_fmt   = src->pix_fmt;
 
+        dst->coded_width  = src->coded_width;
+        dst->coded_height = src->coded_height;
+
         dst->has_b_frames = src->has_b_frames;
         dst->idct_algo    = src->idct_algo;
         dst->slice_count  = src->slice_count;