aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-17 04:06:32 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-17 04:06:32 +0100
commit4be03a7a6c39a0ea0d4a3e0275ba51c2b66786ac (patch)
treea364c8c9a53246076b1c63bebe481c2621f98745 /cmdutils.c
parent3f07dd6e392bf35a478203dc60fcbd36dfdd42aa (diff)
downloadffmpeg-4be03a7a6c39a0ea0d4a3e0275ba51c2b66786ac.tar.gz
cmdutils: Exit in case of faulty stream specifiers
Avoids printing confusing and unrelated errors Fixes Ticket2772 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c
index b777396772..b68dae9753 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -1997,7 +1997,7 @@ AVDictionary *filter_codec_opts(AVDictionary *opts, enum AVCodecID codec_id,
switch (check_stream_specifier(s, st, p + 1)) {
case 1: *p = 0; break;
case 0: continue;
- default: return NULL;
+ default: exit_program(1);
}
if (av_opt_find(&cc, t->key, NULL, flags, AV_OPT_SEARCH_FAKE_OBJ) ||