diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-03-23 14:16:45 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-03-23 20:53:29 +0000 |
commit | 1ddd3e23a49b9eec11c62dca018238cf7349c90f (patch) | |
tree | 8478f2905fa7ffd598a76e6ac9f383a963aabf1b | |
parent | ae4f5d944cce431b1f4715c863122355e1d78007 (diff) | |
download | ffmpeg-1ddd3e23a49b9eec11c62dca018238cf7349c90f.tar.gz |
vaapi_h264: fix slice data offset
-rw-r--r-- | libavcodec/vaapi_h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vaapi_h264.c b/libavcodec/vaapi_h264.c index 0fb3876177..a97a0914ef 100644 --- a/libavcodec/vaapi_h264.c +++ b/libavcodec/vaapi_h264.c @@ -328,7 +328,7 @@ static int vaapi_h264_decode_slice(AVCodecContext *avctx, slice_param = (VASliceParameterBufferH264 *)ff_vaapi_alloc_slice(avctx->hwaccel_context, buffer, size); if (!slice_param) return -1; - slice_param->slice_data_bit_offset = get_bits_count(&h->gb) + 8; /* bit buffer started beyond nal_unit_type */ + slice_param->slice_data_bit_offset = get_bits_count(&sl->gb) + 8; /* bit buffer started beyond nal_unit_type */ slice_param->first_mb_in_slice = (sl->mb_y >> FIELD_OR_MBAFF_PICTURE(h)) * h->mb_width + sl->mb_x; slice_param->slice_type = ff_h264_get_slice_type(sl); slice_param->direct_spatial_mv_pred_flag = sl->slice_type == AV_PICTURE_TYPE_B ? sl->direct_spatial_mv_pred : 0; |