diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-30 19:10:26 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-30 19:10:26 +0000 |
commit | 718c7b18c91c3eca21d7028bc6581045b22b32a4 (patch) | |
tree | 63c666a2c3b3f81ff618b765d57624ea848997cf /libavfilter | |
parent | 22bf4592c8c17f6dbd5e3e6afaa896587d4d69fd (diff) | |
download | ffmpeg-718c7b18c91c3eca21d7028bc6581045b22b32a4.tar.gz |
Use av_get_pix_fmt() instead of the deprecated avcodec_get_pix_fmt()
function.
Originally committed as revision 21550 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_format.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_format.c b/libavfilter/vf_format.c index 66c569cb53..d9f102db7c 100644 --- a/libavfilter/vf_format.c +++ b/libavfilter/vf_format.c @@ -23,6 +23,7 @@ * format and noformat video filters */ +#include "libavutil/pixdesc.h" #include "avfilter.h" typedef struct { @@ -56,7 +57,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) memcpy(pix_fmt_name, cur, pix_fmt_name_len); pix_fmt_name[pix_fmt_name_len] = 0; - pix_fmt = avcodec_get_pix_fmt(pix_fmt_name); + pix_fmt = av_get_pix_fmt(pix_fmt_name); if (pix_fmt == PIX_FMT_NONE) { av_log(ctx, AV_LOG_ERROR, "Unknown pixel format: %s\n", pix_fmt_name); |