[FFmpeg-cvslog] avconv: check return value
Vittorio Giovara
git at videolan.org
Fri Oct 17 14:21:06 CEST 2014
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Tue Oct 14 16:46:48 2014 +0100| [c92965dbfbb7e2b49df14db2fd0e23a29295730a] | committer: Vittorio Giovara
avconv: check return value
CC: libav-stable at libav.org
Bug-Id: CID 1224275
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c92965dbfbb7e2b49df14db2fd0e23a29295730a
---
avconv.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/avconv.c b/avconv.c
index 972e62b..c94e8f8 100644
--- a/avconv.c
+++ b/avconv.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list