[FFmpeg-cvslog] r26182 - trunk/libavformat/riff.c
pross
subversion
Sat Jan 1 04:24:10 CET 2011
Author: pross
Date: Sat Jan 1 04:24:10 2011
New Revision: 26182
Log:
move ff_get_bmp_header under CONFIG_DEMUXERS block
Modified:
trunk/libavformat/riff.c
Modified: trunk/libavformat/riff.c
==============================================================================
--- trunk/libavformat/riff.c Sat Jan 1 00:22:08 2011 (r26181)
+++ trunk/libavformat/riff.c Sat Jan 1 04:24:10 2011 (r26182)
@@ -444,23 +444,6 @@ int ff_put_wav_header(ByteIOContext *pb,
return hdrsize;
}
-int ff_get_bmp_header(ByteIOContext *pb, AVStream *st)
-{
- int tag1;
- get_le32(pb); /* size */
- st->codec->width = get_le32(pb);
- st->codec->height = (int32_t)get_le32(pb);
- get_le16(pb); /* planes */
- st->codec->bits_per_coded_sample= get_le16(pb); /* depth */
- tag1 = get_le32(pb);
- get_le32(pb); /* ImageSize */
- get_le32(pb); /* XPelsPerMeter */
- get_le32(pb); /* YPelsPerMeter */
- get_le32(pb); /* ClrUsed */
- get_le32(pb); /* ClrImportant */
- return tag1;
-}
-
/* BITMAPINFOHEADER header */
void ff_put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const AVCodecTag *tags, int for_asf)
{
@@ -555,6 +538,23 @@ enum CodecID ff_wav_codec_get_id(unsigne
id = CODEC_ID_PCM_ZORK;
return id;
}
+
+int ff_get_bmp_header(ByteIOContext *pb, AVStream *st)
+{
+ int tag1;
+ get_le32(pb); /* size */
+ st->codec->width = get_le32(pb);
+ st->codec->height = (int32_t)get_le32(pb);
+ get_le16(pb); /* planes */
+ st->codec->bits_per_coded_sample= get_le16(pb); /* depth */
+ tag1 = get_le32(pb);
+ get_le32(pb); /* ImageSize */
+ get_le32(pb); /* XPelsPerMeter */
+ get_le32(pb); /* YPelsPerMeter */
+ get_le32(pb); /* ClrUsed */
+ get_le32(pb); /* ClrImportant */
+ return tag1;
+}
#endif // CONFIG_DEMUXERS
void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale)
More information about the ffmpeg-cvslog
mailing list