mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
ffmpeg: show error message in case of av_buffersrc_add_frame_flags() failure
This commit is contained in:
parent
fba3a3bbfb
commit
f6c9a325b7
8
ffmpeg.c
8
ffmpeg.c
@ -1715,12 +1715,12 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output)
|
||||
break;
|
||||
} else
|
||||
f = decoded_frame;
|
||||
if(av_buffersrc_add_frame_flags(ist->filters[i]->filter, f,
|
||||
AV_BUFFERSRC_FLAG_PUSH)<0) {
|
||||
av_log(NULL, AV_LOG_FATAL, "Failed to inject frame into filter network\n");
|
||||
ret = av_buffersrc_add_frame_flags(ist->filters[i]->filter, f, AV_BUFFERSRC_FLAG_PUSH);
|
||||
if (ret < 0) {
|
||||
av_log(NULL, AV_LOG_FATAL,
|
||||
"Failed to inject frame into filter network: %s\n", av_err2str(ret));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
av_frame_unref(ist->filter_frame);
|
||||
|
Loading…
Reference in New Issue
Block a user