changeset 6651:abc8176ddf88 libavcodec

Make most of E-AC-3 work without breaking regression tests.
author michael
date Sat, 19 Apr 2008 12:04:33 +0000
parents 2d1497d25251
children 1aa282868038
files ac3_parser.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ac3_parser.c	Sat Apr 19 11:14:55 2008 +0000
+++ b/ac3_parser.c	Sat Apr 19 12:04:33 2008 +0000
@@ -84,7 +84,7 @@
         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->frame_type = EAC3_FRAME_TYPE_INDEPENDENT;
+        hdr->frame_type = EAC3_FRAME_TYPE_AC3_CONVERT; //EAC3_FRAME_TYPE_INDEPENDENT;
     } else {
         /* Enhanced AC-3 */
         hdr->crc1 = 0;
@@ -140,8 +140,8 @@
     hdr_info->channels = hdr.channels;
     hdr_info->samples = AC3_FRAME_SIZE;
 
-    *need_next_header = 0;//(hdr.frame_type != EAC3_FRAME_TYPE_AC3_CONVERT);
-    *new_frame_start  = 1;//(hdr.frame_type != EAC3_FRAME_TYPE_DEPENDENT);
+    *need_next_header = (hdr.frame_type != EAC3_FRAME_TYPE_AC3_CONVERT);
+    *new_frame_start  = (hdr.frame_type != EAC3_FRAME_TYPE_DEPENDENT);
     return hdr.frame_size;
 }