diff --git a/avcodec.cpp b/avcodec.cpp index 259f5e7a..99b77eeb 100644 --- a/avcodec.cpp +++ b/avcodec.cpp @@ -500,7 +500,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; } }