[FFmpeg-cvslog] r22361 - trunk/libavcodec/vp3.c

conrad subversion
Tue Mar 9 01:29:26 CET 2010


Author: conrad
Date: Tue Mar  9 01:29:26 2010
New Revision: 22361

Log:
vp3: Set pict_type

Modified:
   trunk/libavcodec/vp3.c

Modified: trunk/libavcodec/vp3.c
==============================================================================
--- trunk/libavcodec/vp3.c	Tue Mar  9 01:29:22 2010	(r22360)
+++ trunk/libavcodec/vp3.c	Tue Mar  9 01:29:26 2010	(r22361)
@@ -1810,6 +1810,7 @@ static int vp3_decode_frame(AVCodecConte
         return buf_size;
 
     s->current_frame.reference = 3;
+    s->current_frame.pict_type = s->keyframe ? FF_I_TYPE : FF_P_TYPE;
     if (avctx->get_buffer(avctx, &s->current_frame) < 0) {
         av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed\n");
         goto error;
@@ -1836,7 +1837,9 @@ static int vp3_decode_frame(AVCodecConte
     } else {
         if (!s->golden_frame.data[0]) {
             av_log(s->avctx, AV_LOG_WARNING, "vp3: first frame not a keyframe\n");
+
             s->golden_frame.reference = 3;
+            s->golden_frame.pict_type = FF_I_TYPE;
             if (avctx->get_buffer(avctx, &s->golden_frame) < 0) {
                 av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed\n");
                 goto error;



More information about the ffmpeg-cvslog mailing list