• Max Kellermann's avatar
    decoder/ffmpeg: fix libavformat 0.6 by using av_open_input_stream() · e2e8d0d2
    Max Kellermann authored
    libavformat 0.6 does not pass the original URI pointer to the "open"
    method, which leads to a crash because MPD was using a dirty hack to
    pass a pointer to that method.
    
    This patch switches to av_open_input_stream() with a custom
    ByteIOContext class, instead of doing the URI string hack with
    av_open_input_file().
    
    Loosely based on a patch from Jasper St. Pierre.
    e2e8d0d2
ffmpeg_decoder_plugin.c 15.3 KB