git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c802a2e
)
avconv: check return value
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Tue, 14 Oct 2014 15:46:48 +0000
(16:46 +0100)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Fri, 17 Oct 2014 08:55:46 +0000
(09:55 +0100)
CC: libav-stable@libav.org
Bug-Id: CID
1224275
avconv.c
patch
|
blob
|
history
diff --git
a/avconv.c
b/avconv.c
index
972e62b
..
c94e8f8
100644
(file)
--- 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);