[FFmpeg-devel] [PATCH] In mov muxer, use correct tag for dvcpro hd

Baptiste Coudurier baptiste.coudurier
Wed Mar 2 00:55:32 CET 2011


On 03/01/2011 03:40 PM, M?ns Rullg?rd wrote:
> Baptiste Coudurier<baptiste.coudurier at gmail.com>  writes:
>
>> ---
>>   libavformat/movenc.c |   19 +++++++++++++------
>>   1 files changed, 13 insertions(+), 6 deletions(-)
>>
>> diff --git a/libavformat/movenc.c b/libavformat/movenc.c
>> index 7179e7a..e4cf3f0 100644
>> --- a/libavformat/movenc.c
>> +++ b/libavformat/movenc.c
>> @@ -624,12 +624,19 @@ static int mov_get_dv_codec_tag(AVFormatContext *s, MOVTrack *track)
>>   {
>>       int tag;
>>
>> -    if (track->enc->height == 480) /* NTSC */
>> -        if  (track->enc->pix_fmt == PIX_FMT_YUV422P) tag = MKTAG('d','v','5','n');
>> -        else                                         tag = MKTAG('d','v','c',' ');
>> -    else if (track->enc->pix_fmt == PIX_FMT_YUV422P) tag = MKTAG('d','v','5','p');
>> -    else if (track->enc->pix_fmt == PIX_FMT_YUV420P) tag = MKTAG('d','v','c','p');
>> -    else                                             tag = MKTAG('d','v','p','p');
>> +    if (track->enc->width == 720) /* SD */
>
> Are other widths (e.g. 704) impossible?  If not, this will tag them as
> 1080-line, which is probably wrong.

They are impossible, although I think you're right and it's better to 
explicitely check.

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list