mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
fftools/ffplay: replace report_and_exit() with returning an error code
This commit is contained in:
parent
140cb5a742
commit
78699923ac
@ -2784,8 +2784,12 @@ static int read_thread(void *arg)
|
||||
int orig_nb_streams = ic->nb_streams;
|
||||
|
||||
err = setup_find_stream_info_opts(ic, codec_opts, &opts);
|
||||
if (err < 0)
|
||||
report_and_exit(err);
|
||||
if (err < 0) {
|
||||
av_log(NULL, AV_LOG_ERROR,
|
||||
"Error setting up avformat_find_stream_info() options\n");
|
||||
ret = err;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
err = avformat_find_stream_info(ic, opts);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user