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)
committerMartin Storsjö <martin@martin.st>
Tue, 17 Sep 2013 08:33:38 +0000 (11:33 +0300)
commitb1db33159fdc2da4bdd8c75e4ff9a7dd0ef2f0c2
tree2a30b31cbdb8ee9eb25c6e0914b9325ceaf9e8d2
parentea78a348d86a3a733f6c1e0a65cfdd8283d924b9
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>
libavcodec/ffv1.c