[FFmpeg-cvslog] dxva2_h264: fix slice offset in long slice structs
Hendrik Leppkes
git at videolan.org
Mon Mar 23 16:22:42 CET 2015
ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Mon Mar 23 15:58:26 2015 +0100| [cf1fba0fb83ba4d6ddd0a2432ea5e5e6f8c10aa2] | committer: Michael Niedermayer
dxva2_h264: fix slice offset in long slice structs
Fixes Ticket #4384
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cf1fba0fb83ba4d6ddd0a2432ea5e5e6f8c10aa2
---
libavcodec/dxva2_h264.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dxva2_h264.c b/libavcodec/dxva2_h264.c
index 451d8a0..62a868b 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;
More information about the ffmpeg-cvslog
mailing list