diff --git a/avcodec.cpp b/avcodec.cpp index 8fda8797..a0062074 100644 --- a/avcodec.cpp +++ b/avcodec.cpp @@ -352,7 +352,7 @@ bool avcodec_decoder_decode(const avcodec_decoder d, opencv_mat mat) success = true; done = true; } - else if (res != AVERROR(EAGAIN)) { + else if (res != AVERROR(EAGAIN) && res != AVERROR_INVALIDDATA) { done = true; } }