• Stefano Sabatini's avatar
    examples/muxing: set codec in the codec context · 13bbc464
    Stefano Sabatini authored
    Make add_{audio,video}_stream return the found codec, and pass it to
    avcodec_open2() through open_{audio,video} functions.
    
    Fix failure:
    No codec provided to avcodec_open2().
    could not open codec
    
    This is also consistent with the use of the avcodec_open2() API in the
    codebase.
    13bbc464
muxing.c 16.1 KB