Fixed DXVA_Slice_H264_Long::BitOffsetToSliceData value.
authorRafaël Carré <rafael.carre@gmail.com>
Thu, 21 Oct 2010 18:39:57 +0000 (18:39 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 21 Oct 2010 18:39:57 +0000 (18:39 +0000)
commitfc068f9f2762bf7b24ced5d02b93f4d098b6ce23
treeb9a73cce81ad85eb809754b79f5142bd7cd47ba6
parenteced8fa02ea237abd9c6a6e9287bb7524addb8f4
Fixed DXVA_Slice_H264_Long::BitOffsetToSliceData value.

The 8 bits offset (nal unit type) should not be added, as the spec says:

"This bit offset is the offset within the RBSP data for the slice, relative
to the starting position of the slice_header() in the RBSP"

This fixes DXVA2 support for intel GPU.

Patch by Rafaël Carré (funman _AT_ videolan _DOT_ org).

Originally committed as revision 25538 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/dxva2_h264.c