diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-12-12 21:12:53 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-01 02:57:56 +0100 |
commit | 3d8eeea62009a85c88ee4a630da4d6037920aa6e (patch) | |
tree | 1a0cf984fead9d8036c87ae48a15b6502d76efbf /libavcodec/dxva2_vc1.c | |
parent | c5562890c7c3e495a1995bfa64f730806020e8d6 (diff) | |
download | ffmpeg-3d8eeea62009a85c88ee4a630da4d6037920aa6e.tar.gz |
dxva2_vc1: signal skipped p frames
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dxva2_vc1.c')
-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 995b3e3cfa..a86d7cdc22 100644 --- a/libavcodec/dxva2_vc1.c +++ b/libavcodec/dxva2_vc1.c @@ -168,7 +168,7 @@ static void fill_slice(AVCodecContext *avctx, DXVA_SliceInfo *slice, slice->dwSliceDataLocation = position; slice->bStartCodeBitOffset = 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 = v->p_frame_skipped ? 0xffff : get_bits_count(&s->gb); slice->wNumberMBsInSlice = s->mb_width * s->mb_height; /* XXX We assume 1 slice */ slice->wQuantizerScaleCode = v->pq; slice->wBadSliceChopping = 0; |