[FFmpeg-cvslog] r23243 - trunk/libavcodec/rawdec.c

stefano subversion
Sat May 22 01:19:45 CEST 2010


Author: stefano
Date: Sat May 22 01:19:45 2010
New Revision: 23243

Log:
Rename findPixelFormat() to find_pix_fmt().

Less ugly and more consistent with the FFmpeg predominant style.

Modified:
   trunk/libavcodec/rawdec.c

Modified: trunk/libavcodec/rawdec.c
==============================================================================
--- trunk/libavcodec/rawdec.c	Fri May 21 23:50:07 2010	(r23242)
+++ trunk/libavcodec/rawdec.c	Sat May 22 01:19:45 2010	(r23243)
@@ -58,7 +58,7 @@ static const PixelFormatTag pixelFormatB
     { 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)
@@ -73,11 +73,11 @@ static av_cold int raw_init_decoder(AVCo
     RawVideoContext *context = avctx->priv_data;
 
     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);
     context->buffer = av_malloc(context->length);



More information about the ffmpeg-cvslog mailing list