Browse Source

Set the correct number of samples for E-AC-3 in the AC3 parser.

Originally committed as revision 17472 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Justin Ruggles 16 years ago
parent
commit
a169df2f76
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/ac3_parser.c

+ 1
- 1
libavcodec/ac3_parser.c View File

@@ -174,7 +174,7 @@ static int ac3_sync(uint64_t state, AACAC3ParseContext *hdr_info,
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


Loading…
Cancel
Save