diff options
author | foo86 <foobaz86@gmail.com> | 2017-07-10 17:11:40 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-07-18 21:04:58 -0300 |
commit | 012620aa1b40b0642e3081871059a1be98411df4 (patch) | |
tree | 3967cb2f558b93363756ee302c2e07103fe42f4a /libavcodec/dca_xll.c | |
parent | 902cd30e9b72d3ad5dfe01b27e3dd0928ad88562 (diff) | |
download | ffmpeg-012620aa1b40b0642e3081871059a1be98411df4.tar.gz |
avcodec/dca: avoid using bitstream reader in a non-standard way
Use proper get_bits.h functions instead of directly accessing index.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/dca_xll.c')
-rw-r--r-- | libavcodec/dca_xll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dca_xll.c b/libavcodec/dca_xll.c index 38a1999fc8..d265cab8df 100644 --- a/libavcodec/dca_xll.c +++ b/libavcodec/dca_xll.c @@ -1028,7 +1028,7 @@ static int parse_band_data(DCAXllDecoder *s) return ret; chs_clear_band_data(s, c, band, seg); } - s->gb.index = navi_pos; + skip_bits_long(&s->gb, navi_pos - get_bits_count(&s->gb)); } navi_ptr++; } |