OSDN Git Service

Set avctx->coded_frame in RoQ encoder. At some point in
authorVitor Sessak <vitor1001@gmail.com>
Sat, 19 Jul 2008 02:43:23 +0000 (02:43 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Sat, 19 Jul 2008 02:43:23 +0000 (02:43 +0000)
the SVN history this became mandated. Fix issue 548.

Originally committed as revision 14287 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/roqvideoenc.c

index 013821c..a115e58 100644 (file)
@@ -911,6 +911,8 @@ static void roq_encode_video(RoqContext *enc)
     reconstruct_and_encode_image(enc, &tempData, enc->width, enc->height,
                                  enc->width*enc->height/64);
 
+    enc->avctx->coded_frame = enc->current_frame;
+
     /* Rotate frame history */
     FFSWAP(AVFrame *, enc->current_frame, enc->last_frame);
     FFSWAP(motion_vect *, enc->last_motion4, enc->this_motion4);