h264: fully check cropping amount from sps
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 26 Aug 2014 00:40:19 +0000 (20:40 -0400)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 26 Aug 2014 17:31:29 +0000 (13:31 -0400)
commite87f5e4e5f2e2e36b0b7826d708cda7049877af0
treec9e579f4bffe807245980b307c86b55e7853ad4d
parent0a024268261d05ccdcf7e03c85fb78d22037a464
h264: fully check cropping amount from sps

Even if sps.crop is true, the cropping amount may be zero.
Fixes a sample with a valid but broken container cropping.
libavcodec/h264_slice.c