[vlc-devel] [PATCH 01/18] avodec: call es_format_Change() where possible
Steve Lhomme
robux4 at videolabs.io
Wed Jul 5 17:00:15 CEST 2017
---
modules/codec/avcodec/video.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 0a0379ac28..c290b00758 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -322,8 +322,7 @@ static int lavc_UpdateVideoFormat(decoder_t *dec, AVCodecContext *ctx,
fmt_out.p_palette = dec->fmt_out.video.p_palette;
dec->fmt_out.video.p_palette = NULL;
- es_format_Clean(&dec->fmt_out);
- es_format_Init(&dec->fmt_out, VIDEO_ES, fmt_out.i_chroma);
+ es_format_Change(&dec->fmt_out, VIDEO_ES, fmt_out.i_chroma);
dec->fmt_out.video = fmt_out;
dec->fmt_out.video.orientation = dec->fmt_in.video.orientation;
dec->fmt_out.video.projection_mode = dec->fmt_in.video.projection_mode;
--
2.12.1
More information about the vlc-devel
mailing list