avcodec/vc1: support multi-slice field interlaced pictures with hwaccel
authorJerome Borsboom <jerome.borsboom@carpalis.nl>
Wed, 9 May 2018 05:50:28 +0000 (07:50 +0200)
committerMark Thompson <sw@jkqxz.net>
Sun, 17 Jun 2018 15:35:36 +0000 (16:35 +0100)
commit89651c82b86e43021b0ebcde129fd98a2b922fa2
tree3c19b43f71b06f9d33062481b4648dc8115d0517
parent3d028b7b72a071df7ec2b5a2ccdbf767eec60505
avcodec/vc1: support multi-slice field interlaced pictures with hwaccel

When using hardware accelerated decoding for multi-slice field interlaced pictures,
only the first slice was decoded. This patch adds the neccesary looping over the
remaining slices that may exist in field interlaced pictures. Additionally, we align
the calculation of mby_start for the second field with the method given in VC-1 spec.

Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
libavcodec/vc1dec.c