diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-03-23 14:16:44 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-03-23 20:53:29 +0000 |
commit | ae4f5d944cce431b1f4715c863122355e1d78007 (patch) | |
tree | c39d3f049969723ac0fa3f4b6ead7eacaeb1f6ed | |
parent | b21af32aed7e343f962753943e9f16baedfb1750 (diff) | |
download | ffmpeg-ae4f5d944cce431b1f4715c863122355e1d78007.tar.gz |
dxva2_h264: fix slice offset in long slice structs
-rw-r--r-- | libavcodec/dxva2_h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dxva2_h264.c b/libavcodec/dxva2_h264.c index 03af474892..093db99ec3 100644 --- a/libavcodec/dxva2_h264.c +++ b/libavcodec/dxva2_h264.c @@ -222,7 +222,7 @@ static void fill_slice_long(AVCodecContext *avctx, DXVA_Slice_H264_Long *slice, slice->first_mb_in_slice = (sl->mb_y >> FIELD_OR_MBAFF_PICTURE(h)) * h->mb_width + sl->mb_x; slice->NumMbsForSlice = 0; /* XXX it is set once we have all slices */ - slice->BitOffsetToSliceData = get_bits_count(&h->gb); + slice->BitOffsetToSliceData = get_bits_count(&sl->gb); slice->slice_type = ff_h264_get_slice_type(sl); if (sl->slice_type_fixed) slice->slice_type += 5; |