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
75bd07f7
Commit
75bd07f7
authored
Nov 26, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4videoenc: write 0 instead of vol_sprite_usage
That field is never set for encoding.
parent
e62a43f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
mpeg4videoenc.c
libavcodec/mpeg4videoenc.c
+3
-4
No files found.
libavcodec/mpeg4videoenc.c
View file @
75bd07f7
...
@@ -1039,9 +1039,9 @@ static void mpeg4_encode_vol_header(MpegEncContext *s,
...
@@ -1039,9 +1039,9 @@ static void mpeg4_encode_vol_header(MpegEncContext *s,
put_bits
(
&
s
->
pb
,
1
,
s
->
progressive_sequence
?
0
:
1
);
put_bits
(
&
s
->
pb
,
1
,
s
->
progressive_sequence
?
0
:
1
);
put_bits
(
&
s
->
pb
,
1
,
1
);
/* obmc disable */
put_bits
(
&
s
->
pb
,
1
,
1
);
/* obmc disable */
if
(
vo_ver_id
==
1
)
if
(
vo_ver_id
==
1
)
put_bits
(
&
s
->
pb
,
1
,
s
->
vol_sprite_usage
);
/* sprite enable */
put_bits
(
&
s
->
pb
,
1
,
0
);
/* sprite enable */
else
else
put_bits
(
&
s
->
pb
,
2
,
s
->
vol_sprite_usage
);
/* sprite enable */
put_bits
(
&
s
->
pb
,
2
,
0
);
/* sprite enable */
put_bits
(
&
s
->
pb
,
1
,
0
);
/* not 8 bit == false */
put_bits
(
&
s
->
pb
,
1
,
0
);
/* not 8 bit == false */
put_bits
(
&
s
->
pb
,
1
,
s
->
mpeg_quant
);
/* quant type= (0=h263 style)*/
put_bits
(
&
s
->
pb
,
1
,
s
->
mpeg_quant
);
/* quant type= (0=h263 style)*/
...
@@ -1113,8 +1113,7 @@ void ff_mpeg4_encode_picture_header(MpegEncContext *s, int picture_number)
...
@@ -1113,8 +1113,7 @@ void ff_mpeg4_encode_picture_header(MpegEncContext *s, int picture_number)
put_bits
(
&
s
->
pb
,
s
->
time_increment_bits
,
time_mod
);
/* time increment */
put_bits
(
&
s
->
pb
,
s
->
time_increment_bits
,
time_mod
);
/* time increment */
put_bits
(
&
s
->
pb
,
1
,
1
);
/* marker */
put_bits
(
&
s
->
pb
,
1
,
1
);
/* marker */
put_bits
(
&
s
->
pb
,
1
,
1
);
/* vop coded */
put_bits
(
&
s
->
pb
,
1
,
1
);
/* vop coded */
if
(
s
->
pict_type
==
AV_PICTURE_TYPE_P
||
if
(
s
->
pict_type
==
AV_PICTURE_TYPE_P
)
{
(
s
->
pict_type
==
AV_PICTURE_TYPE_S
&&
s
->
vol_sprite_usage
==
GMC_SPRITE
))
{
put_bits
(
&
s
->
pb
,
1
,
s
->
no_rounding
);
/* rounding type */
put_bits
(
&
s
->
pb
,
1
,
s
->
no_rounding
);
/* rounding type */
}
}
put_bits
(
&
s
->
pb
,
3
,
0
);
/* intra dc VLC threshold */
put_bits
(
&
s
->
pb
,
3
,
0
);
/* intra dc VLC threshold */
...
...
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