Skip to content
Snippets Groups Projects
Commit 75115561 authored by Vivien Didelot's avatar Vivien Didelot
Browse files

daemon: (VideoDecoder) explicit error message

parent 4c0ece47
No related branches found
No related tags found
No related merge requests found
...@@ -181,7 +181,9 @@ int VideoDecoder::decode(VideoFrame& result) ...@@ -181,7 +181,9 @@ int VideoDecoder::decode(VideoFrame& result)
if (ret == AVERROR(EAGAIN)) { if (ret == AVERROR(EAGAIN)) {
return 0; return 0;
} else if (ret < 0) { } else if (ret < 0) {
ERROR("Couldn't read frame: %s\n", strerror(ret)); char errbuf[64];
av_strerror(ret, errbuf, sizeof(errbuf));
ERROR("Couldn't read frame: %s\n", errbuf);
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment