diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-14 16:46:48 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-17 09:55:46 +0100 |
commit | c92965dbfbb7e2b49df14db2fd0e23a29295730a (patch) | |
tree | e114334b658f724f62e7fd67c7306cb0402cea3c /avconv.c | |
parent | c802a2e718fb3619291f310f851f1a1cdcf4f581 (diff) | |
download | ffmpeg-c92965dbfbb7e2b49df14db2fd0e23a29295730a.tar.gz |
avconv: check return value
CC: libav-stable@libav.org
Bug-Id: CID 1224275
Diffstat (limited to 'avconv.c')
-rw-r--r-- | avconv.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1963,7 +1963,9 @@ static int transcode_init(void) av_log(NULL, AV_LOG_WARNING, "The bitrate parameter is set too low." "It takes bits/s as argument, not kbits/s\n"); } else { - av_opt_set_dict(ost->enc_ctx, &ost->encoder_opts); + ret = av_opt_set_dict(ost->enc_ctx, &ost->encoder_opts); + if (ret < 0) + return ret; } ret = avcodec_copy_context(ost->st->codec, ost->enc_ctx); |