[FFmpeg-cvslog] r26306 - trunk/libavcodec/h264.c
darkshikari
subversion
Tue Jan 11 00:42:45 CET 2011
Author: darkshikari
Date: Tue Jan 11 00:42:45 2011
New Revision: 26306
Log:
H.264: fix grayscale decoding with explicit wpred
Modified:
trunk/libavcodec/h264.c
Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c Mon Jan 10 23:25:45 2011 (r26305)
+++ trunk/libavcodec/h264.c Tue Jan 11 00:42:45 2011 (r26306)
@@ -1371,7 +1371,8 @@ static int pred_weight_table(H264Context
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;
More information about the ffmpeg-cvslog
mailing list