1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ffprobe: fix exit code with stream specifiers

Without this fix, ffprobe would exit with a failure exit code if a stream
specifier is given that selects the last stream.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
This commit is contained in:
Nicolas George 2013-06-26 15:17:27 +02:00 committed by Stefano Sabatini
parent 205092bf47
commit a334b00cf6

View File

@ -1921,6 +1921,7 @@ static int probe_file(WriterContext *wctx, const char *filename)
goto end;
else
selected_streams[i] = ret;
ret = 0;
} else {
selected_streams[i] = 1;
}