ffv1: Make sure at least one slice context is initialized
authorMartin Storsjö <martin@martin.st>
Mon, 16 Sep 2013 18:46:50 +0000 (21:46 +0300)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 4 Oct 2013 01:26:27 +0000 (03:26 +0200)
commit3706c229920115f022876ef07b16217dce504db6
treee640d48c9814d41be56ce164cb32b7e766c83383
parenteac1c3f384eab770d42468f4f244156c1735701d
ffv1: Make sure at least one slice context is initialized

This avoids crashes when initializing the range coder for
the first slice context.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit b1db33159fdc2da4bdd8c75e4ff9a7dd0ef2f0c2)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/ffv1.c