Make sure get_filtered_video_pic() doesnt loose interlacedframe/tff.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 7 May 2010 12:05:24 +0000 (12:05 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 7 May 2010 12:05:24 +0000 (12:05 +0000)
Originally committed as revision 23049 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index c4a1a14..1400907 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -385,6 +385,8 @@ static int get_filtered_video_pic(AVFilterContext *ctx,
 
     memcpy(pic2->data,     pic->data,     sizeof(pic->data));
     memcpy(pic2->linesize, pic->linesize, sizeof(pic->linesize));
 
     memcpy(pic2->data,     pic->data,     sizeof(pic->data));
     memcpy(pic2->linesize, pic->linesize, sizeof(pic->linesize));
+    pic2->interlaced_frame = pic->interlaced;
+    pic2->top_field_first  = pic->top_field_first;
 
     return 1;
 }
 
     return 1;
 }