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
7fa70598
Commit
7fa70598
authored
Feb 14, 2009
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable dropping frames for RV3/4
Originally committed as revision 17221 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
eca406e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
rv34.c
libavcodec/rv34.c
+9
-0
No files found.
libavcodec/rv34.c
View file @
7fa70598
...
...
@@ -1408,6 +1408,15 @@ int ff_rv34_decode_frame(AVCodecContext *avctx,
}
if
((
!
s
->
last_picture_ptr
||
!
s
->
last_picture_ptr
->
data
[
0
])
&&
si
.
type
==
FF_B_TYPE
)
return
-
1
;
/* skip b frames if we are in a hurry */
if
(
avctx
->
hurry_up
&&
si
.
type
==
FF_B_TYPE
)
return
buf_size
;
if
(
(
avctx
->
skip_frame
>=
AVDISCARD_NONREF
&&
si
.
type
==
FF_B_TYPE
)
||
(
avctx
->
skip_frame
>=
AVDISCARD_NONKEY
&&
si
.
type
!=
FF_I_TYPE
)
||
avctx
->
skip_frame
>=
AVDISCARD_ALL
)
return
buf_size
;
/* skip everything if we are in a hurry>=5 */
if
(
avctx
->
hurry_up
>=
5
)
return
buf_size
;
for
(
i
=
0
;
i
<
slice_count
;
i
++
){
int
offset
=
get_slice_offset
(
avctx
,
slices_hdr
,
i
);
...
...
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