diff ac3_parser.c @ 6530:5d9fe8d17643 libavcodec

using EAC3_STREAM_TYPE_* instead of numbers
author bwolowiec
date Mon, 24 Mar 2008 22:21:22 +0000
parents 5542d0c04a55
children 04763b6fd4f0
line wrap: on
line diff
--- a/ac3_parser.c	Mon Mar 24 21:25:49 2008 +0000
+++ b/ac3_parser.c	Mon Mar 24 22:21:22 2008 +0000
@@ -84,12 +84,12 @@
         hdr->bit_rate = (ff_ac3_bitrate_tab[frame_size_code>>1] * 1000) >> hdr->sr_shift;
         hdr->channels = ff_ac3_channels_tab[hdr->channel_mode] + hdr->lfe_on;
         hdr->frame_size = ff_ac3_frame_size_tab[frame_size_code][hdr->sr_code] * 2;
-        hdr->stream_type = 0;
+        hdr->stream_type = EAC3_STREAM_TYPE_INDEPENDENT;
     } else {
         /* Enhanced AC-3 */
         hdr->crc1 = 0;
         hdr->stream_type = get_bits(&gbc, 2);
-        if(hdr->stream_type == 3)
+        if(hdr->stream_type == EAC3_STREAM_TYPE_RESERVED)
             return AC3_PARSE_ERROR_STREAM_TYPE;
 
         skip_bits(&gbc, 3); // skip substream id