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
e0111b32
Commit
e0111b32
authored
Jul 14, 2005
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more fine grained skip_frame
Originally committed as revision 4441 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8c3eba7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
h264.c
libavcodec/h264.c
+10
-2
No files found.
libavcodec/h264.c
View file @
e0111b32
...
...
@@ -7267,7 +7267,11 @@ static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"decode_slice_header error
\n
"
);
break
;
}
if
(
h
->
redundant_pic_count
==
0
&&
s
->
hurry_up
<
5
&&
avctx
->
skip_frame
<
AVDISCARD_ALL
)
if
(
h
->
redundant_pic_count
==
0
&&
s
->
hurry_up
<
5
&&
(
avctx
->
skip_frame
<
AVDISCARD_NONREF
||
h
->
nal_ref_idc
)
&&
(
avctx
->
skip_frame
<
AVDISCARD_BIDIR
||
h
->
slice_type
!=
B_TYPE
)
&&
(
avctx
->
skip_frame
<
AVDISCARD_NONKEY
||
h
->
slice_type
==
I_TYPE
)
&&
avctx
->
skip_frame
<
AVDISCARD_ALL
)
decode_slice
(
h
);
break
;
case
NAL_DPA
:
...
...
@@ -7289,7 +7293,11 @@ static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){
h
->
inter_gb_ptr
=
&
h
->
inter_gb
;
if
(
h
->
redundant_pic_count
==
0
&&
h
->
intra_gb_ptr
&&
s
->
data_partitioning
&&
s
->
hurry_up
<
5
&&
avctx
->
skip_frame
<
AVDISCARD_ALL
)
&&
s
->
hurry_up
<
5
&&
(
avctx
->
skip_frame
<
AVDISCARD_NONREF
||
h
->
nal_ref_idc
)
&&
(
avctx
->
skip_frame
<
AVDISCARD_BIDIR
||
h
->
slice_type
!=
B_TYPE
)
&&
(
avctx
->
skip_frame
<
AVDISCARD_NONKEY
||
h
->
slice_type
==
I_TYPE
)
&&
avctx
->
skip_frame
<
AVDISCARD_ALL
)
decode_slice
(
h
);
break
;
case
NAL_SEI
:
...
...
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