[Ffmpeg-devel] [PATCH] xan_dpcm in MPlayer + libavformat

Baptiste Coudurier baptiste.coudurier
Sat Nov 18 02:05:54 CET 2006


Hi

M?ns Rullg?rd wrote:
> Diego Biurrun <diego at biurrun.de> writes:
> 
>> Attached patch is necessary to make xan_dpcm work in MPlayer with the
>> libavformat AVI demuxer.  Since it just adds another line to an already
>> present hack I hope it's acceptable...
>>
>> Diego
>>
>> Index: libavformat/avidec.c
>> ===================================================================
>> --- libavformat/avidec.c	(revision 7117)
>> +++ libavformat/avidec.c	(working copy)
>> @@ -451,8 +451,10 @@
>>                          st->need_parsing = 0;
>>                      /* force parsing as several audio frames can be in
>>                         one packet */
>> -                    if (xan_video)
>> +                    if (xan_video){
>>                          st->codec->codec_id = CODEC_ID_XAN_DPCM;
>> +                        st->codec->codec_tag = 0;
>> +                    }
>>                      break;
>>                  default:
>>                      st->codec->codec_type = CODEC_TYPE_DATA;
> 
> The proper fix would of course be for mplayer to use codec_id instead
> of codec_tag to choose decoder.  Well, it's ugly enough as it is, so I
> don't object to adding this to the hack.  That said, I'd be grateful
> to whomever could find the person responsible for this lunacy in the
> first place, and shoot him.
> 

Agree. I wont object either.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312





More information about the ffmpeg-devel mailing list