[SCM] libav/experimental: Rename findPixelFormat() to find_pix_fmt().
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:07:25 UTC 2013
The following commit has been merged in the experimental branch:
commit 1beff414a2acd63a6caf68de42d329c1242367de
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date: Fri May 21 23:19:45 2010 +0000
Rename findPixelFormat() to find_pix_fmt().
Less ugly and more consistent with the FFmpeg predominant style.
Originally committed as revision 23243 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index afbc966..d951ad8 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)
@@ -73,11 +73,11 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx)
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);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list