[FFmpeg-cvslog] r10931 - trunk/libavcodec/h264.c

heydowns subversion
Mon Nov 5 19:16:42 CET 2007


Author: heydowns
Date: Mon Nov  5 19:16:42 2007
New Revision: 10931

Log:
Correct assignment of interlaced_frame; was being set on output frames, 
in display order, based on decoding information in decoding order. Now 
set properly, immediately upon completion of decode.

Based on original patch from Reinhard Nissl,  rnisssl % gmx , de
Original Thread: [FFmpeg-devel] H.264 + PAFF: BBC HD recording shows 
extreme interlacing artefacts, Thu, 01 Nov 2007 22:43:09




Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Mon Nov  5 19:16:42 2007
@@ -7763,6 +7763,8 @@ static int decode_frame(AVCodecContext *
             *data_size = 0;
 
         } else {
+            cur->interlaced_frame = FIELD_OR_MBAFF_PICTURE;
+
         //FIXME do something with unavailable reference frames
 
 #if 0 //decode order
@@ -7845,7 +7847,6 @@ static int decode_frame(AVCodecContext *
     /* we substract 1 because it is added on utils.c    */
     avctx->frame_number = s->picture_number - 1;
 #endif
-    pict->interlaced_frame = FIELD_OR_MBAFF_PICTURE;
     return get_consumed_bytes(s, buf_index, buf_size);
 }
 #if 0




More information about the ffmpeg-cvslog mailing list