summaryrefslogtreecommitdiff
path: root/libavcodec/yop.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/yop.c')
-rw-r--r--libavcodec/yop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/yop.c b/libavcodec/yop.c
index 3959ada251..fd7f090839 100644
--- a/libavcodec/yop.c
+++ b/libavcodec/yop.c
@@ -206,6 +206,9 @@ static int yop_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
return ret;
}
+ if (!avctx->frame_number)
+ memset(s->frame.data[1], 0, AVPALETTE_SIZE);
+
s->dstbuf = s->frame.data[0];
s->dstptr = s->frame.data[0];
s->srcptr = avpkt->data + 4;