Hi!

Attached patch fixes aspect for the tinterlace modes merge and pad. 
Tested with the sample from ticket #4328.

Please comment, Carl Eugen
diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c
index 096a614..12ab4f6 100644
--- a/libavfilter/vf_tinterlace.c
+++ b/libavfilter/vf_tinterlace.c
@@ -266,6 +266,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame 
*picref)
         out->height = outlink->h;
         out->interlaced_frame = 1;
         out->top_field_first = 1;
+        out->sample_aspect_ratio = av_mul_q(cur->sample_aspect_ratio, 
av_make_q(2, 1)); 
 
         /* write odd frame lines into the upper field of the new frame */
         copy_picture_field(tinterlace, out->data, out->linesize,
@@ -295,6 +296,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame 
*picref)
             return AVERROR(ENOMEM);
         av_frame_copy_props(out, cur);
         out->height = outlink->h;
+        out->sample_aspect_ratio = av_mul_q(cur->sample_aspect_ratio, 
av_make_q(2, 1)); 
 
         field = (1 + tinterlace->frame) & 1 ? FIELD_UPPER : FIELD_LOWER;
         /* copy upper and lower fields */
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to