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
617e42e2
Commit
617e42e2
authored
Jul 23, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify cross_idr calculation.
Originally committed as revision 14349 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
20455a33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
h264.c
libavcodec/h264.c
+1
-5
No files found.
libavcodec/h264.c
View file @
617e42e2
...
...
@@ -7896,11 +7896,6 @@ static int decode_frame(AVCodecContext *avctx,
if
(
cur
->
reference
==
0
)
cur
->
reference
=
DELAYED_PIC_REF
;
cross_idr
=
0
;
for
(
i
=
0
;
h
->
delayed_pic
[
i
];
i
++
)
if
(
h
->
delayed_pic
[
i
]
->
poc
==
0
)
cross_idr
=
1
;
out
=
h
->
delayed_pic
[
0
];
out_idx
=
0
;
for
(
i
=
1
;
h
->
delayed_pic
[
i
]
&&
h
->
delayed_pic
[
i
]
->
poc
;
i
++
)
...
...
@@ -7908,6 +7903,7 @@ static int decode_frame(AVCodecContext *avctx,
out
=
h
->
delayed_pic
[
i
];
out_idx
=
i
;
}
cross_idr
=
!
h
->
delayed_pic
[
0
]
->
poc
||
!
h
->
delayed_pic
[
i
];
out_of_order
=
!
cross_idr
&&
out
->
poc
<
h
->
outputed_poc
;
...
...
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