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
d40a1ae7
Commit
d40a1ae7
authored
Jan 21, 2017
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vaapi_mpeg4: Restore changes overwritten by merge
From
2aa8e33d
.
parent
61164112
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
vaapi_mpeg4.c
libavcodec/vaapi_mpeg4.c
+1
-12
No files found.
libavcodec/vaapi_mpeg4.c
View file @
d40a1ae7
...
...
@@ -156,26 +156,15 @@ static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer
VASliceParameterBufferMPEG4
slice_param
;
int
err
;
/* video_plane_with_short_video_header() contains all GOBs
* in-order, and this is what VA API (Intel backend) expects: only
* a single slice param. So fake macroblock_number for Libav so
* that we don't call vaapi_mpeg4_decode_slice() again
*/
if
(
avctx
->
codec
->
id
==
AV_CODEC_ID_H263
)
size
=
s
->
gb
.
buffer_end
-
buffer
;
slice_param
=
(
VASliceParameterBufferMPEG4
)
{
.
slice_data_size
=
size
,
.
slice_data_offset
=
0
,
.
slice_data_flag
=
VA_SLICE_DATA_FLAG_ALL
,
.
macroblock_offset
=
get_bits_count
(
&
s
->
gb
)
%
8
,
.
macroblock_number
=
s
->
mb_y
*
s
->
mb_width
+
s
->
mb_x
,
.
macroblock_number
=
0
,
.
quant_scale
=
s
->
qscale
,
};
if
(
avctx
->
codec
->
id
==
AV_CODEC_ID_H263
)
s
->
mb_y
=
s
->
mb_height
;
err
=
ff_vaapi_decode_make_slice_buffer
(
avctx
,
pic
,
&
slice_param
,
sizeof
(
slice_param
),
buffer
,
size
);
...
...
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