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;
|
break;
|
||||||
} else
|
} else
|
||||||
f = decoded_frame;
|
f = decoded_frame;
|
||||||
if(av_buffersrc_add_frame_flags(ist->filters[i]->filter, f,
|
ret = av_buffersrc_add_frame_flags(ist->filters[i]->filter, f, AV_BUFFERSRC_FLAG_PUSH);
|
||||||
AV_BUFFERSRC_FLAG_PUSH)<0) {
|
if (ret < 0) {
|
||||||
av_log(NULL, AV_LOG_FATAL, "Failed to inject frame into filter network\n");
|
av_log(NULL, AV_LOG_FATAL,
|
||||||
|
"Failed to inject frame into filter network: %s\n", av_err2str(ret));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
av_frame_unref(ist->filter_frame);
|
av_frame_unref(ist->filter_frame);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user