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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit61a911d0073b19974ea289b1594e2bf8bba56007
tree5fa8467cf7794464afeca2830a4a1530c1e664d9
parentd74839d793ebf8c6c7c4a2a8a22ae2bd695d2c41
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>
(cherry picked from commit 05f4703a168a336363750e32bcfdd6f303fbdbc3)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg4videodec.c