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>
Tue, 7 Jan 2014 08:43:56 +0000 (09:43 +0100)
commit2b71a7884196413d39b90549e58c4488a8f83953
tree4e1c9bde0a4535a6af811d352be870d99a87ca5c
parent2ef84218b2921372aed5fcd06eb7edca3e39d01b
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