summaryrefslogtreecommitdiff
path: root/libavcodec/flacdec.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-01-25 00:33:25 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-01-25 00:33:25 +0000
commitd38b88213ed25ed4c552a00b2b6ed07e93b4590b (patch)
tree388f21ea4ec9e1d198eeac14b1cb4b9e0d488097 /libavcodec/flacdec.c
parent6cde949a2084293c7f3661460b5758f11908cac9 (diff)
define FLAC metadata types in flac.h
Originally committed as revision 16765 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flacdec.c')
-rw-r--r--libavcodec/flacdec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index a1faa13e47..16aa476376 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -73,8 +73,6 @@ typedef struct FLACContext {
unsigned int allocated_bitstream_size;
} FLACContext;
-#define METADATA_TYPE_STREAMINFO 0
-
static const int sample_rate_table[] =
{ 0,
88200, 176400, 192000,
@@ -207,7 +205,7 @@ static int metadata_parse(FLACContext *s)
if (metadata_size) {
switch (metadata_type) {
- case METADATA_TYPE_STREAMINFO:
+ case FLAC_METADATA_TYPE_STREAMINFO:
ff_flac_parse_streaminfo(s->avctx, (FLACStreaminfo *)s,
s->gb.buffer+get_bits_count(&s->gb)/8);
streaminfo_updated = 1;