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
e370aad6
Commit
e370aad6
authored
Jun 28, 2016
by
Vadim Kalinsky
Committed by
Michael Niedermayer
Jun 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mov: Skip non-key frames if AVDISCARD_NONKEY is set.
Github: Closes #222
parent
f48aea66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
mov.c
libavformat/mov.c
+6
-0
No files found.
libavformat/mov.c
View file @
e370aad6
...
...
@@ -5224,6 +5224,12 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
sc
->
current_sample
-=
should_retry
(
sc
->
pb
,
ret64
);
return
AVERROR_INVALIDDATA
;
}
if
(
st
->
discard
==
AVDISCARD_NONKEY
&&
0
==
(
sample
->
flags
&
AVINDEX_KEYFRAME
)
)
{
av_log
(
mov
->
fc
,
AV_LOG_DEBUG
,
"Nonkey frame from stream %d discarded due to AVDISCARD_NONKEY
\n
"
,
sc
->
ffindex
);
goto
retry
;
}
ret
=
av_get_packet
(
sc
->
pb
,
pkt
,
sample
->
size
);
if
(
ret
<
0
)
{
sc
->
current_sample
-=
should_retry
(
sc
->
pb
,
ret
);
...
...
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