From 797229a6a2a189d6f58bf6bbd40c87f88ac1304c Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 26 Nov 2009 21:04:33 +0000 Subject: [PATCH] Make avcodec_get_pix_fmt_name() use av_pix_fmt_descriptors rather than pix_fmt_info. Originally committed as revision 20625 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/imgconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 5e4d4f9337..2adf589c2e 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -486,7 +486,7 @@ const char *avcodec_get_pix_fmt_name(enum PixelFormat pix_fmt) if (pix_fmt < 0 || pix_fmt >= PIX_FMT_NB) return NULL; else - return pix_fmt_info[pix_fmt].name; + return av_pix_fmt_descriptors[pix_fmt].name; } static enum PixelFormat avcodec_get_pix_fmt_internal(const char *name)