webp: Fix alpha initialisation
authorMark Thompson <sw@jkqxz.net>
Wed, 25 Oct 2017 23:18:42 +0000 (00:18 +0100)
committerMark Thompson <sw@jkqxz.net>
Tue, 19 Dec 2017 23:21:59 +0000 (23:21 +0000)
commit57623cba1301ee7874687dd7e04c611051638e9d
tree86f891c6a341fc5de1ec62a5a22d14a71f902bf5
parent2fcb0090115f7fc7648ad241a5903f866760d4b6
webp: Fix alpha initialisation

ff_get_format() in the next patch will reject formats which aren't in the
offered list, so the hack in 7cb9296db872c4221453e5411f242ebcfca62664 is
no longer valid.  Change the hack by adding a new field in the VP8 decoder
context to indicate that it's actually WebP and don't call ff_get_format()
at all in that case.
libavcodec/vp8.c
libavcodec/vp8.h
libavcodec/webp.c