---
libavcodec/avs.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/avs.c b/libavcodec/avs.c
index f6535a2..b17d87d 100644
--- a/libavcodec/avs.c
+++ b/libavcodec/avs.c
@@ -87,6 +87,10 @@ avs_decode_frame(AVCodecContext * avctx,
buf += 4;
for (i=first; i<last; i++, buf+=3)
pal[i] = (buf[0] << 18) | (buf[1] << 10) | (buf[2] << 2);
+ if (first > 0)
+ memset(pal, 0, 4 * first);
+ if (last < 256)
+ memset(pal + last, 0, 4 * (256 - last));
sub_type = buf[0];
type = buf[1];
--
1.7.12.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel