[FFmpeg-cvslog] pthread: copy coded frame dimensions in update_context_from_thread

Ronald S. Bultje git at videolan.org
Fri Nov 4 20:49:26 CET 2011


ffmpeg | branch: release/0.7 | Ronald S. Bultje <rsbultje at gmail.com> | Fri Oct 14 23:46:06 2011 +0200| [15a7fe106cb4ae57cf9d36bb1ed2006b5a59ba16] | committer: Michael Niedermayer

pthread: copy coded frame dimensions in update_context_from_thread

Signed-off-by: Janne Grunau <janne-libav at jannau.net>
(cherry picked from commit feadcd1bdcbb4601f4ff01878027264fde985ee1)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=15a7fe106cb4ae57cf9d36bb1ed2006b5a59ba16
---

 libavcodec/pthread.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index fb5c2f1..4feecba 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -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;



More information about the ffmpeg-cvslog mailing list