diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-02-20 22:00:41 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-02-20 22:00:41 +0000 |
commit | a169df2f76c88679297fb2bff0424cadc3b509dd (patch) | |
tree | 3156739062d0ffcf252a845c448e32d9f187f93a /libavcodec/ac3_parser.c | |
parent | ebb61f834a338836590e10de98981a73066e63b7 (diff) | |
download | ffmpeg-a169df2f76c88679297fb2bff0424cadc3b509dd.tar.gz |
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
Diffstat (limited to 'libavcodec/ac3_parser.c')
-rw-r--r-- | libavcodec/ac3_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3_parser.c b/libavcodec/ac3_parser.c index e78deb20eb..baa18fd755 100644 --- a/libavcodec/ac3_parser.c +++ b/libavcodec/ac3_parser.c @@ -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 |