[FFmpeg-devel] avcodec_decode_video with interlaced source question

Thomas Parmegiani thomasp
Mon Mar 3 19:02:52 CET 2008


Hi all !

   After calling avcodec_decode_video from an interlaced video file I get a
valid filled AVFrame structure : interlaced_frame and top_field_first
AVFrame's values are set to 1.
      How do I get the top field ? From line 0, 2, 4, 6, 8 ? And bottom
field ? From line 1, 3, 5, 7,... ?

      Thanks in advance...

      Thomas.P




More information about the ffmpeg-devel mailing list