Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoo86 <foobaz86@gmail.com>2017-07-10 17:11:40 +0300
committerJames Almer <jamrial@gmail.com>2017-07-19 03:04:58 +0300
commit012620aa1b40b0642e3081871059a1be98411df4 (patch)
tree3967cb2f558b93363756ee302c2e07103fe42f4a /libavcodec/dca_xll.c
parent902cd30e9b72d3ad5dfe01b27e3dd0928ad88562 (diff)
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.c2
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++;
}