OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1746dc3
)
hq_hqa: Fix reading hqa quantization matrix index
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Mon, 20 Apr 2015 11:06:01 +0000
(12:06 +0100)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Mon, 20 Apr 2015 18:20:22 +0000
(19:20 +0100)
Value is stored as a byte.
libavcodec/hq_hqa.c
patch
|
blob
|
history
diff --git
a/libavcodec/hq_hqa.c
b/libavcodec/hq_hqa.c
index
b63901a
..
4b18eae
100644
(file)
--- a/
libavcodec/hq_hqa.c
+++ b/
libavcodec/hq_hqa.c
@@
-255,7
+255,8
@@
static int hqa_decode_frame(HQContext *ctx, AVFrame *pic, size_t data_size)
av_log(ctx->avctx, AV_LOG_VERBOSE, "HQA Profile\n");
- quant = bytestream2_get_be32(&ctx->gbc);
+ quant = bytestream2_get_byte(&ctx->gbc);
+ bytestream2_skip(&ctx->gbc, 3);
if (quant >= NUM_HQ_QUANTS) {
av_log(ctx->avctx, AV_LOG_ERROR,
"Invalid quantization matrix %d.\n", quant);