Commit 3021d1be authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Michael Niedermayer

dxva2_vc1: set bfraction in slice info according to spec

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8abdf46b
...@@ -148,7 +148,7 @@ static void fill_slice(AVCodecContext *avctx, DXVA_SliceInfo *slice, ...@@ -148,7 +148,7 @@ static void fill_slice(AVCodecContext *avctx, DXVA_SliceInfo *slice,
slice->dwSliceBitsInBuffer = 8 * size; slice->dwSliceBitsInBuffer = 8 * size;
slice->dwSliceDataLocation = position; slice->dwSliceDataLocation = position;
slice->bStartCodeBitOffset = 0; slice->bStartCodeBitOffset = 0;
slice->bReservedBits = 0; slice->bReservedBits = (s->pict_type == AV_PICTURE_TYPE_B && !v->bi_type) ? v->bfraction_lut_index + 9 : 0;
slice->wMBbitOffset = get_bits_count(&s->gb); slice->wMBbitOffset = get_bits_count(&s->gb);
slice->wNumberMBsInSlice = s->mb_width * s->mb_height; /* XXX We assume 1 slice */ slice->wNumberMBsInSlice = s->mb_width * s->mb_height; /* XXX We assume 1 slice */
slice->wQuantizerScaleCode = v->pq; slice->wQuantizerScaleCode = v->pq;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment