[vlc-commits] avcodec: remove useless palette copy
Thomas Guillem
git at videolan.org
Mon Sep 26 18:55:33 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Sep 26 18:53:41 2016 +0200| [a944c74a0276e551a28f0979f69280efb0c3425e] | committer: Thomas Guillem
avcodec: remove useless palette copy
dec->fmt_in.video.p_palette will be used to copy to palette via
av_packet_new_side_data().
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a944c74a0276e551a28f0979f69280efb0c3425e
---
modules/codec/avcodec/video.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 52dedfa..6b18458 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -521,12 +521,9 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
p_dec->fmt_out.video.orientation = p_dec->fmt_in.video.orientation;
- if( p_dec->fmt_in.video.p_palette ) {
+ if( p_dec->fmt_in.video.p_palette )
p_sys->palette_sent = false;
- p_dec->fmt_out.video.p_palette = malloc( sizeof(video_palette_t) );
- if( p_dec->fmt_out.video.p_palette )
- *p_dec->fmt_out.video.p_palette = *p_dec->fmt_in.video.p_palette;
- } else
+ else
p_sys->palette_sent = true;
/* ***** init this codec with special data ***** */
More information about the vlc-commits
mailing list