Skip to content

Commit

Permalink
allow AVERROR_INVALIDDATA (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-armstrong-discord authored Nov 25, 2024
1 parent 8983735 commit 79f53a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 79f53a1

Please sign in to comment.