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
b76a0e24
Commit
b76a0e24
authored
Jan 23, 2015
by
rogerdpack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dshow: drop initial audio packets with weird timestamps
Signed-off-by:
rogerdpack
<
rogerpack2005@gmail.com
>
parent
8eb5b5ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
dshow_pin.c
libavdevice/dshow_pin.c
+8
-0
No files found.
libavdevice/dshow_pin.c
View file @
b76a0e24
...
...
@@ -320,6 +320,14 @@ libAVMemInputPin_Receive(libAVMemInputPin *this, IMediaSample *sample)
}
else
{
int64_t
dummy
;
IMediaSample_GetTime
(
sample
,
&
curtime
,
&
dummy
);
if
(
curtime
>
400000000000000000LL
)
{
/* initial frames sometimes start < 0 (shown as a very large number here,
like 437650244077016960 which FFmpeg doesn't like.
TODO figure out math. For now just drop them. */
av_log
(
NULL
,
AV_LOG_DEBUG
,
"dshow dropping initial (or ending) audio frame with odd PTS too high %"
PRId64
"
\n
"
,
curtime
);
return
S_OK
;
}
curtime
+=
pin
->
filter
->
start_time
;
}
...
...
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