mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-31 18:44:44 +03:00
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.