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
bed1d9ec
Commit
bed1d9ec
authored
Jul 30, 2015
by
rogerdpack
Committed by
Michael Niedermayer
Jul 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dshow: show more debug timestamp info
Signed-off-by:
rogerdpack
<
rogerpack2005@gmail.com
>
parent
f2c58931
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
dshow_pin.c
libavdevice/dshow_pin.c
+10
-2
No files found.
libavdevice/dshow_pin.c
View file @
bed1d9ec
...
...
@@ -303,14 +303,18 @@ libAVMemInputPin_Receive(libAVMemInputPin *this, IMediaSample *sample)
libAVPin
*
pin
=
(
libAVPin
*
)
((
uint8_t
*
)
this
-
imemoffset
);
enum
dshowDeviceType
devtype
=
pin
->
filter
->
type
;
void
*
priv_data
;
AVFormatContext
*
s
;
uint8_t
*
buf
;
int
buf_size
;
/* todo should be a long? */
int
index
;
int64_t
curtime
;
int64_t
orig_curtime
;
int64_t
graphtime
;
const
char
*
devtypename
=
(
devtype
==
VideoDevice
)
?
"video"
:
"audio"
;
IReferenceClock
*
clock
=
pin
->
filter
->
clock
;
int64_t
dummy
;
struct
dshow_ctx
*
ctx
;
dshowdebug
(
"libAVMemInputPin_Receive(%p)
\n
"
,
this
);
...
...
@@ -319,6 +323,7 @@ libAVMemInputPin_Receive(libAVMemInputPin *this, IMediaSample *sample)
IMediaSample_GetTime
(
sample
,
&
orig_curtime
,
&
dummy
);
orig_curtime
+=
pin
->
filter
->
start_time
;
IReferenceClock_GetTime
(
clock
,
&
graphtime
);
if
(
devtype
==
VideoDevice
)
{
/* PTS from video devices is unreliable. */
IReferenceClock_GetTime
(
clock
,
&
curtime
);
...
...
@@ -338,10 +343,13 @@ libAVMemInputPin_Receive(libAVMemInputPin *this, IMediaSample *sample)
buf_size
=
IMediaSample_GetActualDataLength
(
sample
);
IMediaSample_GetPointer
(
sample
,
&
buf
);
priv_data
=
pin
->
filter
->
priv_data
;
s
=
priv_data
;
ctx
=
s
->
priv_data
;
index
=
pin
->
filter
->
stream_index
;
av_log
(
NULL
,
AV_LOG_VERBOSE
,
"dshow passing through packet of type %s size %6d timestamp %"
PRId64
" orig timestamp %"
PRId64
"
\n
"
,
devtypename
,
buf_size
,
curtime
,
orig_curtime
);
av_log
(
NULL
,
AV_LOG_VERBOSE
,
"dshow passing through packet of type %s size %8d "
"timestamp %"
PRId64
" orig timestamp %"
PRId64
" graph timestamp %"
PRId64
" diff %"
PRId64
" %s
\n
"
,
devtypename
,
buf_size
,
curtime
,
orig_curtime
,
graphtime
,
graphtime
-
orig_curtime
,
ctx
->
device_name
[
devtype
]);
pin
->
filter
->
callback
(
priv_data
,
index
,
buf
,
buf_size
,
curtime
,
devtype
);
return
S_OK
;
...
...
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