mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01:00
fftools/cmdutils: add error handling to filter_codec_opts()
This commit is contained in:
parent
6b8cf2505a
commit
87f0333af1
6 changed files with 56 additions and 23 deletions
|
|
@ -3421,8 +3421,12 @@ static int open_input_file(InputFile *ifile, const char *filename,
|
|||
continue;
|
||||
}
|
||||
{
|
||||
AVDictionary *opts = filter_codec_opts(codec_opts, stream->codecpar->codec_id,
|
||||
fmt_ctx, stream, codec);
|
||||
AVDictionary *opts;
|
||||
|
||||
err = filter_codec_opts(codec_opts, stream->codecpar->codec_id,
|
||||
fmt_ctx, stream, codec, &opts);
|
||||
if (err < 0)
|
||||
exit(1);
|
||||
|
||||
ist->dec_ctx = avcodec_alloc_context3(codec);
|
||||
if (!ist->dec_ctx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue