OSDN Git Service

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)
committerAnton Khirnov <anton@khirnov.net>
Mon, 12 Sep 2011 13:51:30 +0000 (15:51 +0200)
commit23a1f0c59241465ba30103388029a7afc0ead909
tree6937d736066035f29dc65e20f616a89cd69414bc
parent47a8589f7bc69d1a29da1dfdfbd0dfa78a9e31fd
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>
libavcodec/rv34.c