diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-03 11:42:07 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-06-03 13:55:55 +0200 |
commit | 94bed8e582eed1268ddc0d2b88cad21d8c638774 (patch) | |
tree | f2f10756ea236656e7305c5b06b832261efbb6c1 /libavcodec | |
parent | 93d06bd1df73861c73bc12c659aecdf404d1de2a (diff) | |
download | ffmpeg-94bed8e582eed1268ddc0d2b88cad21d8c638774.tar.gz |
Replace avcodec_get_pix_fmt_name() by av_get_pix_fmt_name().
This fixes warnings about avcodec_get_pix_fmt_name() being deprecated.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dv.c | 3 | ||||
-rw-r--r-- | libavcodec/targaenc.c | 3 | ||||
-rw-r--r-- | libavcodec/utils.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 4ee4e5ef99..cd682ecb2b 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -38,6 +38,7 @@ * DV codec. */ #define ALT_BITSTREAM_READER +#include "libavutil/pixdesc.h" #include "avcodec.h" #include "dsputil.h" #include "get_bits.h" @@ -350,7 +351,7 @@ static av_cold int dvvideo_init_encoder(AVCodecContext *avctx) { if (!ff_dv_codec_profile(avctx)) { av_log(avctx, AV_LOG_ERROR, "Found no DV profile for %ix%i %s video\n", - avctx->width, avctx->height, avcodec_get_pix_fmt_name(avctx->pix_fmt)); + avctx->width, avctx->height, av_get_pix_fmt_name(avctx->pix_fmt)); return -1; } diff --git a/libavcodec/targaenc.c b/libavcodec/targaenc.c index 828ab11c94..276bcc83eb 100644 --- a/libavcodec/targaenc.c +++ b/libavcodec/targaenc.c @@ -20,6 +20,7 @@ */ #include "libavutil/intreadwrite.h" +#include "libavutil/pixdesc.h" #include "avcodec.h" #include "rle.h" #include "targa.h" @@ -119,7 +120,7 @@ static int targa_encode_frame(AVCodecContext *avctx, break; default: av_log(avctx, AV_LOG_ERROR, "Pixel format '%s' not supported.\n", - avcodec_get_pix_fmt_name(avctx->pix_fmt)); + av_get_pix_fmt_name(avctx->pix_fmt)); return AVERROR(EINVAL); } bpp = outbuf[16] >> 3; diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 0eb5afd63c..65792a6f5a 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -933,7 +933,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) if (enc->pix_fmt != PIX_FMT_NONE) { snprintf(buf + strlen(buf), buf_size - strlen(buf), ", %s", - avcodec_get_pix_fmt_name(enc->pix_fmt)); + av_get_pix_fmt_name(enc->pix_fmt)); } if (enc->width) { snprintf(buf + strlen(buf), buf_size - strlen(buf), |