[vlc-commits] avcodec: remove duplicate call to GetVlcChroma()

Rémi Denis-Courmont git at videolan.org
Wed Apr 22 20:46:11 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 22 20:00:13 2015 +0300| [11b71b2f8176bb93c83480505b615e005b75cd58] | committer: Rémi Denis-Courmont

avcodec: remove duplicate call to GetVlcChroma()

ffmpeg_NewPictBuf() already takes care of it.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=11b71b2f8176bb93c83480505b615e005b75cd58
---

 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 5ca424b..ccd179f 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1002,9 +1002,6 @@ static picture_t *lavc_dr_GetFrame(struct AVCodecContext *ctx,
     decoder_t *dec = (decoder_t *)ctx->opaque;
     decoder_sys_t *sys = dec->p_sys;
 
-    if (GetVlcChroma(&dec->fmt_out.video, ctx->pix_fmt) != VLC_SUCCESS)
-        return NULL;
-    dec->fmt_out.i_codec = dec->fmt_out.video.i_chroma;
     if (ctx->pix_fmt == PIX_FMT_PAL8)
         return NULL;
 



More information about the vlc-commits mailing list