diff flacdec.c @ 8659:61ae841cd13e libavcodec

define FLAC metadata types in flac.h
author jbr
date Sun, 25 Jan 2009 00:33:25 +0000
parents dc8fd7c55928
children 4f1525c698e9
line wrap: on
line diff
--- a/flacdec.c	Sat Jan 24 19:05:52 2009 +0000
+++ b/flacdec.c	Sun Jan 25 00:33:25 2009 +0000
@@ -73,8 +73,6 @@
     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 @@
 
             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;