[vlc-devel] [PATCH 02/18] avcodec: don't handle the subs structure when setting up a video_format_t

Steve Lhomme robux4 at videolabs.io
Wed Jul 5 17:00:16 CEST 2017


This i_reorder_depth variable is only set when creating a SPU_ES decoder
---
 modules/codec/avcodec/video.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index c290b00758..711c9b0e55 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -318,7 +318,6 @@ static int lavc_UpdateVideoFormat(decoder_t *dec, AVCodecContext *ctx,
                                     __MAX(ctx->ticks_per_frame, 1),
                                     fmt_out.i_frame_rate_base);
 
-    const int i_cc_reorder = dec->fmt_out.subs.cc.i_reorder_depth;
     fmt_out.p_palette = dec->fmt_out.video.p_palette;
     dec->fmt_out.video.p_palette = NULL;
 
@@ -331,8 +330,6 @@ static int lavc_UpdateVideoFormat(decoder_t *dec, AVCodecContext *ctx,
         dec->fmt_out.video.mastering = dec->fmt_in.video.mastering;
     dec->fmt_out.video.lighting = dec->fmt_in.video.lighting;
 
-    dec->fmt_out.subs.cc.i_reorder_depth = i_cc_reorder;
-
     return decoder_UpdateVideoFormat(dec);
 }
 
-- 
2.12.1



More information about the vlc-devel mailing list