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
9f0617d2
Commit
9f0617d2
authored
Nov 26, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4videodec: remove write-only sprite variables from MpegEncContext
parent
1a890257
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
mpeg4videodec.c
libavcodec/mpeg4videodec.c
+4
-4
mpegvideo.h
libavcodec/mpegvideo.h
+0
-4
No files found.
libavcodec/mpeg4videodec.c
View file @
9f0617d2
...
...
@@ -1769,13 +1769,13 @@ static int decode_vol_header(Mpeg4DecContext *ctx, GetBitContext *gb)
if
(
ctx
->
vol_sprite_usage
==
STATIC_SPRITE
||
ctx
->
vol_sprite_usage
==
GMC_SPRITE
)
{
if
(
ctx
->
vol_sprite_usage
==
STATIC_SPRITE
)
{
s
->
sprite_width
=
get_bits
(
gb
,
13
);
s
kip_bits
(
gb
,
13
);
// sprite_width
skip_bits1
(
gb
);
/* marker */
s
->
sprite_height
=
get_bits
(
gb
,
13
);
s
kip_bits
(
gb
,
13
);
// sprite_height
skip_bits1
(
gb
);
/* marker */
s
->
sprite_left
=
get_bits
(
gb
,
13
);
s
kip_bits
(
gb
,
13
);
// sprite_left
skip_bits1
(
gb
);
/* marker */
s
->
sprite_top
=
get_bits
(
gb
,
13
);
s
kip_bits
(
gb
,
13
);
// sprite_top
skip_bits1
(
gb
);
/* marker */
}
s
->
num_sprite_warping_points
=
get_bits
(
gb
,
6
);
...
...
libavcodec/mpegvideo.h
View file @
9f0617d2
...
...
@@ -579,10 +579,6 @@ typedef struct MpegEncContext {
uint16_t
pb_time
;
///< time distance between the last b and p,s,i frame
uint16_t
pp_field_time
;
uint16_t
pb_field_time
;
///< like above, just for interlaced
int
sprite_width
;
int
sprite_height
;
int
sprite_left
;
int
sprite_top
;
int
sprite_brightness_change
;
int
num_sprite_warping_points
;
int
real_sprite_warping_points
;
...
...
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