Skip to content
Snippets Groups Projects
  • Stefano Sabatini's avatar
    13bbc464
    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
    History
    examples/muxing: set codec in the codec context
    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.