[MPlayer-dev-eng] [PATCH] Fix Bug 415: Support H264 over rtsp

Nico Sabbi nicola_sabbi at fastwebnet.it
Fri Feb 16 01:06:39 CET 2007


Carl Eugen Hoyos wrote:
> On 2007-02-13 11:14, Carl Eugen Hoyos wrote:
> 
>>Hi!
>>
>>The attached patch should fix Bugzilla bug 415:
>>Player does not display video track from H264 sample movie from Darwin
>>Streaming Server over RTSP.
> 
> 
> Replaced AVCODEC_H with USE_LIBAVCODEC as Reimar suggested
> 
> Carl Eugen
> 

sorry, one last nit:

> +    unsigned char *cfg = new unsigned char[5 * strlen(dup)];
> +    psz = dup;
> +    for( i = 0; i < i_records; i++ )
> +    {
> +
> +        cfg[configSize++] = 0x00;
> +        cfg[configSize++] = 0x00;
> +        cfg[configSize++] = 0x00;
> +        cfg[configSize++] = 0x01;
> +        configSize += av_base64_decode( (uint8_t*)&cfg[configSize], 
> +                                        psz, 
> +                                        5 * strlen(dup) - 4 );
> +
> +    psz += strlen(psz)+1;
> +    }
> +    if( dup ) free( dup );
> +    return cfg;
> +}
> +

the startcode insertion, IIRC, should be superlous. I remember it's 
not necessary in DMB streams (nal h264 over a-lot-of-crappy-layers 
over TS).
Can you retry without it? I'd do it myself, but I can't connect to the 
server

-- 
"Without a frontend, mplayer is useless" - someone in mplayer-users



More information about the MPlayer-dev-eng mailing list