[FFmpeg-cvslog] cmdutils: Exit in case of faulty stream specifiers
Michael Niedermayer
git at videolan.org
Mon Nov 17 04:14:22 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Nov 17 04:06:32 2014 +0100| [4be03a7a6c39a0ea0d4a3e0275ba51c2b66786ac] | committer: Michael Niedermayer
cmdutils: Exit in case of faulty stream specifiers
Avoids printing confusing and unrelated errors
Fixes Ticket2772
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4be03a7a6c39a0ea0d4a3e0275ba51c2b66786ac
---
cmdutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmdutils.c b/cmdutils.c
index b777396..b68dae9 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) ||
More information about the ffmpeg-cvslog
mailing list