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
9140d37a
Commit
9140d37a
authored
Jun 07, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/h264: use the correct level for droping non intra frames
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
8a4a84a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
h264.c
libavcodec/h264.c
+2
-2
h264_slice.c
libavcodec/h264_slice.c
+1
-1
No files found.
libavcodec/h264.c
View file @
9140d37a
...
...
@@ -1622,7 +1622,7 @@ again:
hx
->
nal_ref_idc
)
&&
(
avctx
->
skip_frame
<
AVDISCARD_BIDIR
||
hx
->
slice_type_nos
!=
AV_PICTURE_TYPE_B
)
&&
(
avctx
->
skip_frame
<
AVDISCARD_NON
KEY
||
(
avctx
->
skip_frame
<
AVDISCARD_NON
INTRA
||
hx
->
slice_type_nos
==
AV_PICTURE_TYPE_I
)
&&
avctx
->
skip_frame
<
AVDISCARD_ALL
)
{
if
(
avctx
->
hwaccel
)
{
...
...
@@ -1683,7 +1683,7 @@ again:
(
avctx
->
skip_frame
<
AVDISCARD_NONREF
||
hx
->
nal_ref_idc
)
&&
(
avctx
->
skip_frame
<
AVDISCARD_BIDIR
||
hx
->
slice_type_nos
!=
AV_PICTURE_TYPE_B
)
&&
(
avctx
->
skip_frame
<
AVDISCARD_NON
KEY
||
(
avctx
->
skip_frame
<
AVDISCARD_NON
INTRA
||
hx
->
slice_type_nos
==
AV_PICTURE_TYPE_I
)
&&
avctx
->
skip_frame
<
AVDISCARD_ALL
)
context_count
++
;
...
...
libavcodec/h264_slice.c
View file @
9140d37a
...
...
@@ -1856,7 +1856,7 @@ int ff_h264_decode_slice_header(H264Context *h, H264Context *h0)
}
if
(
h
->
avctx
->
skip_loop_filter
>=
AVDISCARD_ALL
||
(
h
->
avctx
->
skip_loop_filter
>=
AVDISCARD_NON
KEY
&&
(
h
->
avctx
->
skip_loop_filter
>=
AVDISCARD_NON
INTRA
&&
h
->
slice_type_nos
!=
AV_PICTURE_TYPE_I
)
||
(
h
->
avctx
->
skip_loop_filter
>=
AVDISCARD_BIDIR
&&
h
->
slice_type_nos
==
AV_PICTURE_TYPE_B
)
||
...
...
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