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

Diego Biurrun diego
Wed Feb 8 12:54:28 CET 2006


On Thu, Feb 02, 2006 at 04:25:14PM +0100, Michael Niedermayer wrote:
> 
> On Thu, Feb 02, 2006 at 04:22:06PM +0100, Luca Abeni wrote:
> > 
> > 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

Applied.

Diego





More information about the ffmpeg-devel mailing list