dsicinav: Clip the source size to the expected maximum
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 19 Jul 2013 19:34:21 +0000 (21:34 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 19 Jul 2013 20:14:07 +0000 (22:14 +0200)
commitfd8189932147a524fe43532b46baa35e8be92a1b
tree72d3eee33e6e4348042a7396941c9961aac4b66b
parentdd0bfc3a6a310e3e3674ce7742672d689a9a0e93
dsicinav: Clip the source size to the expected maximum

A packet larger than cin->bitmap_size does not make sense.

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