Commit 11b71b2f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avcodec: remove duplicate call to GetVlcChroma()

ffmpeg_NewPictBuf() already takes care of it.
parent 9557c3eb
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment