diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-03-01 00:07:37 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-03-02 05:16:12 +0300 |
commit | 12c3e120fe8f8d6881001eade390d8a5c185783d (patch) | |
tree | d7fa719daa3034d047201f582858c75e6002ba7c /libavcodec/ituh263dec.c | |
parent | 04c99c8042c8bfae817c722d90aa0f1a40db861e (diff) |
avcodec/ituh263dec: Use 0xffff as error code in h263p_decode_umotion()
This matches ff_h263_decode_motion() both functions error codes are interpreted by the same common code
Fixes: 690/clusterfuzz-testcase-4744944981901312
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/ituh263dec.c')
-rw-r--r-- | libavcodec/ituh263dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |