Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
d40a1ae7
Commit
d40a1ae7
authored
8 years ago
by
Mark Thompson
Browse files
Options
Downloads
Patches
Plain Diff
vaapi_mpeg4: Restore changes overwritten by merge
From
2aa8e33d
.
parent
61164112
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/vaapi_mpeg4.c
+1
-12
1 addition, 12 deletions
libavcodec/vaapi_mpeg4.c
with
1 addition
and
12 deletions
libavcodec/vaapi_mpeg4.c
+
1
−
12
View file @
d40a1ae7
...
@@ -156,26 +156,15 @@ static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer
...
@@ -156,26 +156,15 @@ static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer
VASliceParameterBufferMPEG4
slice_param
;
VASliceParameterBufferMPEG4
slice_param
;
int
err
;
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_param
=
(
VASliceParameterBufferMPEG4
)
{
.
slice_data_size
=
size
,
.
slice_data_size
=
size
,
.
slice_data_offset
=
0
,
.
slice_data_offset
=
0
,
.
slice_data_flag
=
VA_SLICE_DATA_FLAG_ALL
,
.
slice_data_flag
=
VA_SLICE_DATA_FLAG_ALL
,
.
macroblock_offset
=
get_bits_count
(
&
s
->
gb
)
%
8
,
.
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
,
.
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
,
err
=
ff_vaapi_decode_make_slice_buffer
(
avctx
,
pic
,
&
slice_param
,
sizeof
(
slice_param
),
&
slice_param
,
sizeof
(
slice_param
),
buffer
,
size
);
buffer
,
size
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment