aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2011-09-09 23:46:00 +0200
committerAlex Converse <alex.converse@gmail.com>2011-09-15 13:23:04 -0700
commitb59efc94347ccf0cbc2ff14a5a9e99819c5bdc4d (patch)
tree5b47b992b373e740509222dae25d471c180c0115 /libavformat/movenc.c
parentea540401d6082474df8364169e2041e29e4dc407 (diff)
downloadffmpeg-b59efc94347ccf0cbc2ff14a5a9e99819c5bdc4d.tar.gz
Fixed size given to init_get_bits().
init_get_bits() takes a number of bits and not a number of bytes as its size argument. Signed-off-by: Alex Converse <alex.converse@gmail.com>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 5ac95b804d..c7029ab987 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -208,7 +208,7 @@ static int mov_write_ac3_tag(AVIOContext *pb, MOVTrack *track)
avio_wb32(pb, 11);
ffio_wfourcc(pb, "dac3");
- init_get_bits(&gbc, track->vosData+4, track->vosLen-4);
+ init_get_bits(&gbc, track->vosData+4, (track->vosLen-4) * 8);
fscod = get_bits(&gbc, 2);
frmsizecod = get_bits(&gbc, 6);
bsid = get_bits(&gbc, 5);