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:
3f07dd6
)
cmdutils: Exit in case of faulty stream specifiers
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 17 Nov 2014 03:06:32 +0000
(
04:06
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 17 Nov 2014 03:06:32 +0000
(
04:06
+0100)
Avoids printing confusing and unrelated errors
Fixes Ticket2772
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
cmdutils.c
patch
|
blob
|
history
diff --git
a/cmdutils.c
b/cmdutils.c
index
b777396
..
b68dae9
100644
(file)
--- 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) ||