avcodec/qtrle: don't clear the palette when flushing
authorJames Almer <jamrial@gmail.com>
Tue, 27 Aug 2019 18:24:01 +0000 (15:24 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 27 Aug 2019 18:24:47 +0000 (15:24 -0300)
It may be propagated only once for the entire stream.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/qtrle.c

index 2793eb9..f565e0e 100644 (file)
@@ -576,7 +576,6 @@ static void qtrle_decode_flush(AVCodecContext *avctx)
 {
     QtrleContext *s = avctx->priv_data;
 
-    memset(s->pal, 0, sizeof(s->pal));
     av_frame_unref(s->frame);
 }