Commit 78b4bfdb authored by Diego Biurrun's avatar Diego Biurrun

Replace remaining obsolete PIX_FMT names with AV_PIX_FMT equivalents

parent 1f57d601
...@@ -115,7 +115,7 @@ const uint8_t chroma_vals[] = { ...@@ -115,7 +115,7 @@ const uint8_t chroma_vals[] = {
static av_cold int escape130_decode_init(AVCodecContext *avctx) static av_cold int escape130_decode_init(AVCodecContext *avctx)
{ {
Escape130Context *s = avctx->priv_data; Escape130Context *s = avctx->priv_data;
avctx->pix_fmt = PIX_FMT_YUV420P; avctx->pix_fmt = AV_PIX_FMT_YUV420P;
if ((avctx->width & 1) || (avctx->height & 1)) { if ((avctx->width & 1) || (avctx->height & 1)) {
av_log(avctx, AV_LOG_ERROR, av_log(avctx, AV_LOG_ERROR,
......
...@@ -835,7 +835,7 @@ static av_cold int g2m_decode_init(AVCodecContext *avctx) ...@@ -835,7 +835,7 @@ static av_cold int g2m_decode_init(AVCodecContext *avctx)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
} }
avctx->pix_fmt = PIX_FMT_RGB24; avctx->pix_fmt = AV_PIX_FMT_RGB24;
return 0; return 0;
} }
......
...@@ -231,7 +231,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { ...@@ -231,7 +231,7 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
.comp = { .comp = {
{ 0, 0, 1, 0, 7 }, /* Y */ { 0, 0, 1, 0, 7 }, /* Y */
}, },
.flags = PIX_FMT_PSEUDOPAL, .flags = AV_PIX_FMT_FLAG_PSEUDOPAL,
}, },
[AV_PIX_FMT_MONOWHITE] = { [AV_PIX_FMT_MONOWHITE] = {
.name = "monow", .name = "monow",
......
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