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
175ab5f9
Commit
175ab5f9
authored
Feb 09, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/*showinfo: use av_ts2* macros in showinfo and ashowinfo
parent
5d12b83f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
af_ashowinfo.c
libavfilter/af_ashowinfo.c
+3
-2
vf_showinfo.c
libavfilter/vf_showinfo.c
+3
-2
No files found.
libavfilter/af_ashowinfo.c
View file @
175ab5f9
...
...
@@ -25,6 +25,7 @@
#include "libavutil/adler32.h"
#include "libavutil/audioconvert.h"
#include "libavutil/timestamp.h"
#include "avfilter.h"
typedef
struct
{
...
...
@@ -63,11 +64,11 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *samplesref)
samplesref
->
audio
->
channel_layout
);
av_log
(
ctx
,
AV_LOG_INFO
,
"n:%d pts:%
"
PRId64
" pts_time:%f
pos:%"
PRId64
" "
"n:%d pts:%
s pts_time:%s
pos:%"
PRId64
" "
"fmt:%s chlayout:%s nb_samples:%d rate:%d planar:%d "
"checksum:%08X plane_checksum[%08X %08X %08X %08X %08X %08X %08X %08X]
\n
"
,
showinfo
->
frame
,
samplesref
->
pts
,
samplesref
->
pts
*
av_q2d
(
inlink
->
time_base
),
av_ts2str
(
samplesref
->
pts
),
av_ts2timestr
(
samplesref
->
pts
,
&
inlink
->
time_base
),
samplesref
->
pos
,
av_get_sample_fmt_name
(
samplesref
->
format
),
chlayout_str
,
...
...
libavfilter/vf_showinfo.c
View file @
175ab5f9
...
...
@@ -25,6 +25,7 @@
#include "libavutil/adler32.h"
#include "libavutil/imgutils.h"
#include "libavutil/pixdesc.h"
#include "libavutil/timestamp.h"
#include "avfilter.h"
typedef
struct
{
...
...
@@ -59,11 +60,11 @@ static void end_frame(AVFilterLink *inlink)
}
av_log
(
ctx
,
AV_LOG_INFO
,
"n:%d pts:%
"
PRId64
" pts_time:%f
pos:%"
PRId64
" "
"n:%d pts:%
s pts_time:%s
pos:%"
PRId64
" "
"fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c "
"checksum:%08X plane_checksum:[%08X %08X %08X %08X]
\n
"
,
showinfo
->
frame
,
picref
->
pts
,
picref
->
pts
*
av_q2d
(
inlink
->
time_base
),
picref
->
pos
,
av_ts2str
(
picref
->
pts
),
av_ts2timestr
(
picref
->
pts
,
&
inlink
->
time_base
),
picref
->
pos
,
av_pix_fmt_descriptors
[
picref
->
format
].
name
,
picref
->
video
->
sample_aspect_ratio
.
num
,
picref
->
video
->
sample_aspect_ratio
.
den
,
picref
->
video
->
w
,
picref
->
video
->
h
,
...
...
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