Commit 5707f03f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

avcodec: use AV_PIX_FMT_PAL8 iso PIX_FMT_PAL8

parent ef001ee4
......@@ -132,7 +132,7 @@ static const struct
{VLC_CODEC_GREY, PIX_FMT_GRAY8, 0, 0, 0},
/* Paletized RGB */
{VLC_CODEC_RGBP, PIX_FMT_PAL8, 0, 0, 0},
{VLC_CODEC_RGBP, AV_PIX_FMT_PAL8, 0, 0, 0},
{VLC_CODEC_GBR_PLANAR, AV_PIX_FMT_GBRP, 0, 0, 0 },
{VLC_CODEC_GBR_PLANAR_9L, AV_PIX_FMT_GBRP9LE, 0, 0, 0 },
......
......@@ -244,7 +244,7 @@ static void lavc_CopyPicture(decoder_t *dec, picture_t *pic, AVFrame *frame)
}
}
if (unlikely(sys->p_context->pix_fmt == PIX_FMT_PAL8))
if (unlikely(sys->p_context->pix_fmt == AV_PIX_FMT_PAL8))
{
if (pic->format.p_palette == NULL)
pic->format.p_palette = calloc(1, sizeof (video_palette_t));
......@@ -980,7 +980,7 @@ static int lavc_dr_GetFrame(struct AVCodecContext *ctx, AVFrame *frame,
decoder_t *dec = (decoder_t *)ctx->opaque;
decoder_sys_t *sys = dec->p_sys;
if (ctx->pix_fmt == PIX_FMT_PAL8)
if (ctx->pix_fmt == AV_PIX_FMT_PAL8)
goto error;
int width = frame->width;
......
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