mirror of https://github.com/FFmpeg/FFmpeg.git
A negative bits_per_coded_sample doesn't make sense. If it is too large, the size calculation for av_get_packet overflows, resulting in allocation of a too small buffer. Also make sure width and height are sane. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>pull/167/head
parent
5dbd114b83
commit
7172175da6
1 changed files with 12 additions and 0 deletions
Loading…
Reference in new issue