svq3: fix the slice size check
authorAnton Khirnov <anton@khirnov.net>
Wed, 1 Feb 2017 10:50:38 +0000 (11:50 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 25 Feb 2017 08:57:43 +0000 (09:57 +0100)
commitb2788fe9347c02b1355574f3d28d60bfe1250ea7
treea5a1302153395cfe45a1fe514d58cea019441d11
parentcd7a2e1502f174c725c0de82711d2c7649057574
svq3: fix the slice size check

Currently it incorrectly compares bits with bytes.

Also, move the check right before where it's relevant, so that the
correct number of remaining bits is used.

CC: libav-stable@libav.org
libavcodec/svq3.c