mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
lavf/segment: exit immediately in case of invalid stream specifier
Avoid duplicated confusing error message, and propagate error code from the failing avformat_match_stream_specifier() call.
This commit is contained in:
parent
bb539eb13a
commit
e319725717
@ -485,7 +485,7 @@ static int select_reference_stream(AVFormatContext *s)
|
||||
ret = avformat_match_stream_specifier(s, s->streams[i],
|
||||
seg->reference_stream_specifier);
|
||||
if (ret < 0)
|
||||
break;
|
||||
return ret;
|
||||
if (ret > 0) {
|
||||
seg->reference_stream_index = i;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user