Mercurial > libavcodec.hg
changeset 8992:5a3426d7d053 libavcodec
Set the correct number of samples for E-AC-3 in the AC3 parser.
author | jbr |
---|---|
date | Fri, 20 Feb 2009 22:00:41 +0000 |
parents | ca768cb2bfb6 |
children | 80720c5427a0 |
files | ac3_parser.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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