aboutsummaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer2014-10-17 14:08:40 +0200
committerMichael Niedermayer2014-10-17 14:09:15 +0200
commit61c6e69709ca202bfd1df6b0c651c79a9b8e7622 (patch)
treec2c513d938a1e5687a09155ca832d79c6df169d7 /ffmpeg.c
parent1dd38e99fd1263f112825045eb69a6b041d5bc97 (diff)
parentc92965dbfbb7e2b49df14db2fd0e23a29295730a (diff)
Merge commit 'c92965dbfbb7e2b49df14db2fd0e23a29295730a'
* commit 'c92965dbfbb7e2b49df14db2fd0e23a29295730a': avconv: check return value Conflicts: ffmpeg.c See: 4930cd13d634d5f4e284de3a955d5c6a84fd65e2 Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 077207f689..43b012b9ae 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2887,10 +2887,11 @@ 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 {
- if (av_opt_set_dict(ost->enc_ctx, &ost->encoder_opts) < 0) {
+ ret = av_opt_set_dict(ost->enc_ctx, &ost->encoder_opts);
+ if (ret < 0) {
av_log(NULL, AV_LOG_FATAL,
"Error setting up codec context options.\n");
- exit_program(1);
+ return ret;
}
}