mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ffmpeg: update error message, and make use of av_err2str() to simplify
This commit is contained in:
parent
eebe0b0224
commit
270217908b
4
ffmpeg.c
4
ffmpeg.c
@ -1044,10 +1044,8 @@ static int reap_filters(void)
|
|||||||
AV_BUFFERSINK_FLAG_NO_REQUEST);
|
AV_BUFFERSINK_FLAG_NO_REQUEST);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
if (ret != AVERROR(EAGAIN) && ret != AVERROR_EOF) {
|
if (ret != AVERROR(EAGAIN) && ret != AVERROR_EOF) {
|
||||||
char buf[256];
|
|
||||||
av_strerror(ret, buf, sizeof(buf));
|
|
||||||
av_log(NULL, AV_LOG_WARNING,
|
av_log(NULL, AV_LOG_WARNING,
|
||||||
"Error in av_buffersink_get_buffer_ref(): %s\n", buf);
|
"Error in av_buffersink_get_frame_flags(): %s\n", av_err2str(ret));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user