• Rafaël Carré's avatar
    avformat demux: use new IO API · fc4a4577
    Rafaël Carré authored
    - Use AVIOContext instead of ByteIOContext
    - Use avformat_open_input instead of av_open_input_stream
    - Use avio_alloc_context instead of init_put_byte, allocate context on the heap
    - Use AVIOContext.seekable
    
    print avformat_open_input errors
    
    avformat_open_input is the most recent and is documented as available since
    libavformat 53.2.0 (other changes happened in 52.105)
    avformat_open_input was introduced in 52.94 in FFmpeg
    (cherry picked from commit 4c3037ac45b92853d5d85f7bedebdb4b281da0c6)
    Signed-off-by: default avatarKO Myung-Hun <komh@chollian.net>
    Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
    fc4a4577
demux.c 32.8 KB