[FFmpeg-devel] [PATCH] libavformat/gxfenc.c: fix the field number in the media_preamble for video

Baptiste Coudurier baptiste.coudurier
Fri Feb 13 22:37:37 CET 2009


Hi Thierry,

On 2/13/2009 1:01 PM, Thierry Foucu wrote:
> Hi,
> 
> This patch includes 2 changes:
>    - rename nb_frames to nb_fields, as we are using it to count the number
> of video field and not frame
>    - for the media preamble, the SMPTE 360 clause 6.4.2.1.3 says:
>         "For video media, the field number shall be the number of a single
> field or frame. If the video is frame-encoded, the frame numbers (time line
> locations) shall be represented by even field numbers."
>          However, the function av_rescale_rnd could return a odd number for
> NTSC video. So for video, let's use the nb_field from GXFContext

Applied changes separately.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer                                  http://www.ffmpeg.org




More information about the ffmpeg-devel mailing list