# HG changeset patch # User jbr # Date 1235167241 0 # Node ID 5a3426d7d0534bdba1a2544b6f1322ab350fc691 # Parent ca768cb2bfb6c469bbe71cb4f8b4107fb2b5c094 Set the correct number of samples for E-AC-3 in the AC3 parser. diff -r ca768cb2bfb6 -r 5a3426d7d053 ac3_parser.c --- a/ac3_parser.c Fri Feb 20 16:20:01 2009 +0000 +++ b/ac3_parser.c Fri Feb 20 22:00:41 2009 +0000 @@ -174,7 +174,7 @@ hdr_info->sample_rate = hdr.sample_rate; hdr_info->bit_rate = hdr.bit_rate; hdr_info->channels = hdr.channels; - hdr_info->samples = AC3_FRAME_SIZE; + hdr_info->samples = hdr.num_blocks * 256; if(hdr.bitstream_id>10) hdr_info->codec_id = CODEC_ID_EAC3; else