diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c index e39338870f..edb68861ac 100644 --- a/libavcodec/ituh263dec.c +++ b/libavcodec/ituh263dec.c @@ -305,7 +305,7 @@ static int h263p_decode_umotion(MpegEncContext * s, int pred) code += get_bits1(&s->gb); if (code >= 32768) { avpriv_request_sample(s->avctx, "Huge DMV"); - return AVERROR_INVALIDDATA; + return 0xffff; } } sign = code & 1;