projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74093bb
)
H.264: fix grayscale decoding with explicit wpred
author
Jason Garrett-Glaser
<darkshikari@gmail.com>
Mon, 10 Jan 2011 23:42:45 +0000
(23:42 +0000)
committer
Jason Garrett-Glaser
<darkshikari@gmail.com>
Mon, 10 Jan 2011 23:42:45 +0000
(23:42 +0000)
Originally committed as revision 26306 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264.c
b/libavcodec/h264.c
index
318c1c8
..
7c47cfb
100644
(file)
--- a/
libavcodec/h264.c
+++ b/
libavcodec/h264.c
@@
-1371,7
+1371,8
@@
static int pred_weight_table(H264Context *h){
h->use_weight= 0;
h->use_weight_chroma= 0;
h->luma_log2_weight_denom= get_ue_golomb(&s->gb);
- h->chroma_log2_weight_denom= get_ue_golomb(&s->gb);
+ if(CHROMA)
+ h->chroma_log2_weight_denom= get_ue_golomb(&s->gb);
luma_def = 1<<h->luma_log2_weight_denom;
chroma_def = 1<<h->chroma_log2_weight_denom;