vlc | branch: master | Thomas Guillem <[email protected]> | 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 ***** */ _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
