diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-12-12 21:12:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-01 02:57:23 +0100 |
commit | 3021d1be9ef1f863f880b5c667025936b45da065 (patch) | |
tree | 6019f05c5c367bfdb5eebb0ccc76deeb66c2b49f /libavcodec | |
parent | 8abdf46b380562d4716a78174076b1e67ae1f8da (diff) | |
download | ffmpeg-3021d1be9ef1f863f880b5c667025936b45da065.tar.gz |
dxva2_vc1: set bfraction in slice info according to spec
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dxva2_vc1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dxva2_vc1.c b/libavcodec/dxva2_vc1.c index 6ff5765f0c..33309b1032 100644 --- a/libavcodec/dxva2_vc1.c +++ b/libavcodec/dxva2_vc1.c @@ -148,7 +148,7 @@ static void fill_slice(AVCodecContext *avctx, DXVA_SliceInfo *slice, slice->dwSliceBitsInBuffer = 8 * size; slice->dwSliceDataLocation = position; 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->wNumberMBsInSlice = s->mb_width * s->mb_height; /* XXX We assume 1 slice */ slice->wQuantizerScaleCode = v->pq; |