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
0ab515e9
Commit
0ab515e9
authored
Jul 19, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 14291 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
7645da91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
h264.c
libavcodec/h264.c
+3
-4
No files found.
libavcodec/h264.c
View file @
0ab515e9
...
...
@@ -7855,9 +7855,6 @@ static int decode_frame(AVCodecContext *avctx,
out_of_order
=
!
cross_idr
&&
out
->
poc
<
h
->
outputed_poc
;
if
(
pics
<=
s
->
avctx
->
has_b_frames
||
out_of_order
)
out
=
NULL
;
if
(
h
->
sps
.
bitstream_restriction_flag
&&
s
->
avctx
->
has_b_frames
>=
h
->
sps
.
num_reorder_frames
)
{
}
else
if
((
out_of_order
&&
pics
-
1
==
s
->
avctx
->
has_b_frames
&&
pics
<
15
)
...
...
@@ -7867,9 +7864,11 @@ static int decode_frame(AVCodecContext *avctx,
{
s
->
low_delay
=
0
;
s
->
avctx
->
has_b_frames
++
;
out
=
NULL
;
}
if
(
pics
<=
s
->
avctx
->
has_b_frames
||
out_of_order
)
out
=
NULL
;
if
(
out_of_order
||
pics
>
s
->
avctx
->
has_b_frames
){
for
(
i
=
out_idx
;
h
->
delayed_pic
[
i
];
i
++
)
h
->
delayed_pic
[
i
]
=
h
->
delayed_pic
[
i
+
1
];
...
...
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