Commit b6422131 authored by jbr's avatar jbr

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17472 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2ac3283e
...@@ -174,7 +174,7 @@ static int ac3_sync(uint64_t state, AACAC3ParseContext *hdr_info, ...@@ -174,7 +174,7 @@ static int ac3_sync(uint64_t state, AACAC3ParseContext *hdr_info,
hdr_info->sample_rate = hdr.sample_rate; hdr_info->sample_rate = hdr.sample_rate;
hdr_info->bit_rate = hdr.bit_rate; hdr_info->bit_rate = hdr.bit_rate;
hdr_info->channels = hdr.channels; hdr_info->channels = hdr.channels;
hdr_info->samples = AC3_FRAME_SIZE; hdr_info->samples = hdr.num_blocks * 256;
if(hdr.bitstream_id>10) if(hdr.bitstream_id>10)
hdr_info->codec_id = CODEC_ID_EAC3; hdr_info->codec_id = CODEC_ID_EAC3;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment