[Ffmpeg-devel] [PATCH] set interlaced_frame and top_field_first in yuv4mpeg

Michael Niedermayer michaelni
Thu Feb 2 16:25:14 CET 2006


Hi

On Thu, Feb 02, 2006 at 04:22:06PM +0100, Luca Abeni wrote:
> Hi all,
> 
> now that libavcodec/raw.c permits to set the interlaced_frame and
> top_field_first fields, formats using it can take advantage of such
> feature.
> 
> As promised, here is a patch for libavformat/yuv4mpeg.c to correctly (I
> hope :) set the two fields.
> 
> I quickly tested it, and works ok in my testcase (I captured a .y4m file
> from a tv card with
> ./ffmpeg -y -vd /dev/video0 -ad /dev/dsp0 -pix_fmt yuv420p -s 352x288 test.y4m
> and then read it with libavcodec, checking interlaced_frame and
> top_field_first in the frames that I was reading from the file).

looks ok, can be applied

[...]

-- 
Michael





More information about the ffmpeg-devel mailing list