summaryrefslogtreecommitdiff
path: root/libavcodec/ac3_parser.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-02-20 22:00:41 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-02-20 22:00:41 +0000
commita169df2f76c88679297fb2bff0424cadc3b509dd (patch)
tree3156739062d0ffcf252a845c448e32d9f187f93a /libavcodec/ac3_parser.c
parentebb61f834a338836590e10de98981a73066e63b7 (diff)
downloadffmpeg-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.c2
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