mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
H.264: fix grayscale decoding with explicit wpred
Originally committed as revision 26306 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
74093bb593
commit
09fffe9bd4
@ -1371,7 +1371,8 @@ static int pred_weight_table(H264Context *h){
|
|||||||
h->use_weight= 0;
|
h->use_weight= 0;
|
||||||
h->use_weight_chroma= 0;
|
h->use_weight_chroma= 0;
|
||||||
h->luma_log2_weight_denom= get_ue_golomb(&s->gb);
|
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;
|
luma_def = 1<<h->luma_log2_weight_denom;
|
||||||
chroma_def = 1<<h->chroma_log2_weight_denom;
|
chroma_def = 1<<h->chroma_log2_weight_denom;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user