[FFmpeg-devel] [PATCH 03/10] Rename ff_raw_pixelFormatTags symbol to ff_raw_pix_fmt_tags at the next major bump.

Stefano Sabatini stefano.sabatini-lala
Sat May 15 17:29:39 CEST 2010


The new name is shorter and consistent with the FFmpeg style.
---
 libavcodec/raw.c    |    4 ++--
 libavcodec/raw.h    |    2 +-
 libavcodec/rawdec.c |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/raw.c b/libavcodec/raw.c
index b72dd25..60847e3 100644
--- a/libavcodec/raw.c
+++ b/libavcodec/raw.c
@@ -27,7 +27,7 @@
 #include "avcodec.h"
 #include "raw.h"
 
-const PixelFormatTag ff_raw_pixelFormatTags[] = {
+const PixelFormatTag ff_raw_pix_fmt_tags[] = {
     { PIX_FMT_YUV420P, MKTAG('I', '4', '2', '0') }, /* Planar formats */
     { PIX_FMT_YUV420P, MKTAG('I', 'Y', 'U', 'V') },
     { PIX_FMT_YUV420P, MKTAG('Y', 'V', '1', '2') },
@@ -99,7 +99,7 @@ const PixelFormatTag ff_raw_pixelFormatTags[] = {
 
 unsigned int avcodec_pix_fmt_to_codec_tag(enum PixelFormat fmt)
 {
-    const PixelFormatTag * tags = ff_raw_pixelFormatTags;
+    const PixelFormatTag * tags = ff_raw_pix_fmt_tags;
     while (tags->pix_fmt >= 0) {
         if (tags->pix_fmt == fmt)
             return tags->fourcc;
diff --git a/libavcodec/raw.h b/libavcodec/raw.h
index e74006a..4eece61 100644
--- a/libavcodec/raw.h
+++ b/libavcodec/raw.h
@@ -34,6 +34,6 @@ typedef struct PixelFormatTag {
     unsigned int fourcc;
 } PixelFormatTag;
 
-extern const PixelFormatTag ff_raw_pixelFormatTags[];
+extern const PixelFormatTag ff_raw_pix_fmt_tags[];
 
 #endif /* AVCODEC_RAW_H */
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index 8b398d2..afbc966 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -75,7 +75,7 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx)
     if (avctx->codec_tag == MKTAG('r','a','w',' '))
         avctx->pix_fmt = findPixelFormat(pixelFormatBpsMOV, avctx->bits_per_coded_sample);
     else if (avctx->codec_tag)
-        avctx->pix_fmt = findPixelFormat(ff_raw_pixelFormatTags, avctx->codec_tag);
+        avctx->pix_fmt = findPixelFormat(ff_raw_pix_fmt_tags, avctx->codec_tag);
     else if (avctx->bits_per_coded_sample)
         avctx->pix_fmt = findPixelFormat(pixelFormatBpsAVI, avctx->bits_per_coded_sample);
 
-- 
1.7.0




More information about the ffmpeg-devel mailing list