bmv: check for len being valid in bmv_decode_frame().
authorAnton Khirnov <anton@khirnov.net>
Thu, 28 Mar 2013 09:09:36 +0000 (10:09 +0100)
committerAnton Khirnov <anton@khirnov.net>
Thu, 4 Apr 2013 05:54:27 +0000 (07:54 +0200)
commitb88f902125ee808c8366e9dcb3f21e4c227483fc
tree87349a29233ce618deb7e2f692dad8f3a2641a01
parent8d617b11cfc87b2c6056fee029ac5bc760af874a
bmv: check for len being valid in bmv_decode_frame().

It can be 0 or -1 for invalid files, which may result in invalid memory
access.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/bmv.c