avcodec/mpeg4videodec: Check mb_num also against 0
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 Jan 2018 01:29:00 +0000 (02:29 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 29 Jan 2018 03:11:28 +0000 (04:11 +0100)
commit05f4703a168a336363750e32bcfdd6f303fbdbc3
treefb961080e421c740a3401e3ce3debd932546de36
parent4e3e8980b58fc22eb41c0e3cd3392bb4e6ca0184
avcodec/mpeg4videodec: Check mb_num also against 0

The spec implies that 0 is invalid in addition to the existing checks

Found-by: <kierank>
Reviewed-by: Kieran Kunhya <kieran618@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg4videodec.c