[FFmpeg-devel] [PATCH 11/12] Rename findPixelFormat() to find_pix_fmt().

Stefano Sabatini stefano.sabatini-lala
Sat May 15 19:43:47 CEST 2010


Less ugly/consistent with FFmpeg style.
---
 libavcodec/rawdec.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index 910d4a8..6556322 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -58,7 +58,7 @@ static const PixelFormatTag pixelFormatBpsMOV[] = {
     { PIX_FMT_NONE, 0 },
 };
 
-static enum PixelFormat findPixelFormat(const PixelFormatTag *tags, unsigned int fourcc)
+static enum PixelFormat find_pix_fmt(const PixelFormatTag *tags, unsigned int fourcc)
 {
     while (tags->pix_fmt >= 0) {
         if (tags->fourcc == fourcc)
@@ -74,11 +74,11 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx)
 
     if (avctx->pix_fmt == PIX_FMT_NONE) {
         if (avctx->codec_tag == MKTAG('r','a','w',' '))
-            avctx->pix_fmt = findPixelFormat(pixelFormatBpsMOV, avctx->bits_per_coded_sample);
+            avctx->pix_fmt = find_pix_fmt(pixelFormatBpsMOV, avctx->bits_per_coded_sample);
         else if (avctx->codec_tag)
-            avctx->pix_fmt = findPixelFormat(ff_raw_pix_fmt_tags, avctx->codec_tag);
+            avctx->pix_fmt = find_pix_fmt(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);
+            avctx->pix_fmt = find_pix_fmt(pixelFormatBpsAVI, avctx->bits_per_coded_sample);
     }
 
     context->length = avpicture_get_size(avctx->pix_fmt, avctx->width, avctx->height);
-- 
1.7.0




More information about the ffmpeg-devel mailing list