[MPlayer-dev-eng] Re: [PATCH] avc1 in X-QT over RTSP

Ross Finlayson finlayson at live555.com
Fri Jan 12 16:08:00 CET 2007


At 3:12 PM +0100 1/12/07, Guillaume POIRIER wrote:
>Hi,
>
>On 1/10/07, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
>>On 2006-10-19 16:26, Carl Eugen Hoyos wrote:
>>>  Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:
>>>
>>>  > > > But this reference contains three streams (strings ...):
>>>  > > >
>>http://stream.qtv.apple.com/events/aug/wwdc_2006/wwdc_2006_2_650_ref.mov
>>>  > > >
>>>  > > > The first has to be played with -fps 8, the others with -fps 30
>>>  > > > (Patch for frame rate detection follows.)
>>>
>>>  One more change to fix possible endless loop:
>>>
>>>  Index: libmpdemux/demux_rtp_codec.cpp
>>>  ===================================================================
>>>  --- libmpdemux/demux_rtp_codec.cpp      (Revision 20307)
>>>  +++ libmpdemux/demux_rtp_codec.cpp      (Arbeitskopie)
>>>  @@ -86,6 +86,27 @@
>>>       } while (!parseQTState_video(qtRTPSource->qtState, fourcc));
>>>
>>>       bih->biCompression = sh_video->format = fourcc;
>>>  +    bih->biWidth = qtRTPSource->qtState.width;
>>>  +    bih->biHeight = qtRTPSource->qtState.height;
>>>  +    if (bih->biCompression == mmioFOURCC('a','v','c','1')) {
>>>  +      uint8_t *pos = (uint8_t*)qtRTPSource->qtState.sdAtom + 86;
>>>  +      uint8_t *endpos = (uint8_t*)qtRTPSource->qtState.sdAtom
>>>  +                        + qtRTPSource->qtState.sdAtomSize;
>>>  +      while (pos+8 < endpos) {
>>>  +        unsigned atomLength = pos[0]<<24 | pos[1]<<16 | 
>>>pos[2]<<8 | pos[3];
>>>  +        if (atomLength == 0 || atomLength > endpos-pos) break;
>>>  +        if (memcmp(pos+4, "avcC", 4) == 0
>>
>>Since this patch is necessary to play todays Keynote: Could someone please
>>review it?
>
>Ross, it's your baby. What to do with that patch?

Sorry - I missed seeing the patch when it was originally posted to 
the mailing list (and, for some reason, I can't find the original 
message in the mailing list archives).  The patch that you quoted is 
missing some stuff at the end (because it ends in the middle of an 
"if" statement).  Could someone please re-send the complete original 
patch?
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/



More information about the MPlayer-dev-eng mailing list