rv34: check that subsequent slices have the same type as first one.
authorKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 12 Sep 2011 09:39:53 +0000 (11:39 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 21 Sep 2011 17:36:53 +0000 (19:36 +0200)
commitad6177e52c86343b1a9043e56525d01d070a2009
tree73049f4921a2d5a93d91ffe13f5a913e326acb9d
parentb1ceca016a498f2629f5cf1faa3d7981ab825f5a
rv34: check that subsequent slices have the same type as first one.

This prevents some crashes when corrupted bitstream reports e.g. P-type
slice in I-frame. Official RealVideo decoder demands all slices to be
of the same type too.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit 23a1f0c59241465ba30103388029a7afc0ead909)
libavcodec/rv34.c