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
e0560448
Commit
e0560448
authored
Jul 06, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CODEC_FLAG_LOW_DELAY fix
Originally committed as revision 2016 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
27fc5352
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
h263.c
libavcodec/h263.c
+1
-1
mpeg12.c
libavcodec/mpeg12.c
+3
-0
No files found.
libavcodec/h263.c
View file @
e0560448
...
@@ -4648,7 +4648,7 @@ static int decode_vop_header(MpegEncContext *s, GetBitContext *gb){
...
@@ -4648,7 +4648,7 @@ static int decode_vop_header(MpegEncContext *s, GetBitContext *gb){
int
time_incr
,
time_increment
;
int
time_incr
,
time_increment
;
s
->
pict_type
=
get_bits
(
gb
,
2
)
+
I_TYPE
;
/* pict type: I = 0 , P = 1 */
s
->
pict_type
=
get_bits
(
gb
,
2
)
+
I_TYPE
;
/* pict type: I = 0 , P = 1 */
if
(
s
->
pict_type
==
B_TYPE
&&
s
->
low_delay
&&
s
->
vol_control_parameters
==
0
){
if
(
s
->
pict_type
==
B_TYPE
&&
s
->
low_delay
&&
s
->
vol_control_parameters
==
0
&&
!
(
s
->
flags
&
CODEC_FLAG_LOW_DELAY
)
){
printf
(
"low_delay flag set, but shouldnt, clearing it
\n
"
);
printf
(
"low_delay flag set, but shouldnt, clearing it
\n
"
);
s
->
low_delay
=
0
;
s
->
low_delay
=
0
;
}
}
...
...
libavcodec/mpeg12.c
View file @
e0560448
...
@@ -1653,7 +1653,10 @@ static void mpeg_decode_sequence_extension(MpegEncContext *s)
...
@@ -1653,7 +1653,10 @@ static void mpeg_decode_sequence_extension(MpegEncContext *s)
s
->
bit_rate
=
((
s
->
bit_rate
/
400
)
|
(
bit_rate_ext
<<
12
))
*
400
;
s
->
bit_rate
=
((
s
->
bit_rate
/
400
)
|
(
bit_rate_ext
<<
12
))
*
400
;
skip_bits1
(
&
s
->
gb
);
/* marker */
skip_bits1
(
&
s
->
gb
);
/* marker */
vbv_buf_ext
=
get_bits
(
&
s
->
gb
,
8
);
vbv_buf_ext
=
get_bits
(
&
s
->
gb
,
8
);
s
->
low_delay
=
get_bits1
(
&
s
->
gb
);
s
->
low_delay
=
get_bits1
(
&
s
->
gb
);
if
(
s
->
flags
&
CODEC_FLAG_LOW_DELAY
)
s
->
low_delay
=
1
;
frame_rate_ext_n
=
get_bits
(
&
s
->
gb
,
2
);
frame_rate_ext_n
=
get_bits
(
&
s
->
gb
,
2
);
frame_rate_ext_d
=
get_bits
(
&
s
->
gb
,
5
);
frame_rate_ext_d
=
get_bits
(
&
s
->
gb
,
5
);
av_reduce
(
av_reduce
(
...
...
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