You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/lcldec: 420 seems missing 2 bytes, ignore that
Fixes: Ticket 10238 Fixes: mszh_306_306_yuv420.avi Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -219,6 +219,8 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
|
|||||||
if (c->decomp_size != mszh_dlen) {
|
if (c->decomp_size != mszh_dlen) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Decoded size differs (%d != %d)\n",
|
av_log(avctx, AV_LOG_ERROR, "Decoded size differs (%d != %d)\n",
|
||||||
c->decomp_size, mszh_dlen);
|
c->decomp_size, mszh_dlen);
|
||||||
|
if (c->decomp_size != mszh_dlen &&
|
||||||
|
c->decomp_size != mszh_dlen + 2) // YUV420 306x306 is missing 2 bytes
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
encoded = c->decomp_buf;
|
encoded = c->decomp_buf;
|
||||||
|
Reference in New Issue
Block a user