Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
1ddd3e23
Commit
1ddd3e23
authored
Mar 23, 2015
by
Hendrik Leppkes
Committed by
Vittorio Giovara
Mar 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vaapi_h264: fix slice data offset
parent
ae4f5d94
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vaapi_h264.c
libavcodec/vaapi_h264.c
+1
-1
No files found.
libavcodec/vaapi_h264.c
View file @
1ddd3e23
...
@@ -328,7 +328,7 @@ static int vaapi_h264_decode_slice(AVCodecContext *avctx,
...
@@ -328,7 +328,7 @@ static int vaapi_h264_decode_slice(AVCodecContext *avctx,
slice_param
=
(
VASliceParameterBufferH264
*
)
ff_vaapi_alloc_slice
(
avctx
->
hwaccel_context
,
buffer
,
size
);
slice_param
=
(
VASliceParameterBufferH264
*
)
ff_vaapi_alloc_slice
(
avctx
->
hwaccel_context
,
buffer
,
size
);
if
(
!
slice_param
)
if
(
!
slice_param
)
return
-
1
;
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
->
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
->
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
;
slice_param
->
direct_spatial_mv_pred_flag
=
sl
->
slice_type
==
AV_PICTURE_TYPE_B
?
sl
->
direct_spatial_mv_pred
:
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment