[FFmpeg-devel] How is URLContext reachable?

Baptiste Coudurier baptiste.coudurier
Tue Dec 15 08:30:44 CET 2009


Hi,

On 12/14/09 11:24 PM, Tamas Selmeci wrote:
> Hi all!
>
> (I've sent this email formerly to libav-user, which is not the adequate
> list for this)
>
> libavformat/http.c: http_open(...) receives URLContext * as the first
> parameter.
>
> libavformat/mp3.c: mp3_read_packet(...) receives AVFormatContext * as
> the first parameter.
>
> When a netradio stream (e.g. shoutcast) is being opened, http_open is
> executed and then mp3_read_packet will read out the mp3 frames from the
> netradio stream (and a lot of other things are happening, of course).
>
> How can that URLContext structure from AVFormatContext be reached? I've
> checked the online docs two times but have not found the solution. I
> assume URLContext is somehow accessible from AVFormatContext, since
> URLContext refers to the actual netradio stream.

Through ByteIOContext, url_fopen for example.

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



More information about the ffmpeg-devel mailing list