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
7513234b
Commit
7513234b
authored
Mar 12, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: more correct printf format specifiers
parent
8b6136d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
af_ashowinfo.c
libavfilter/af_ashowinfo.c
+2
-2
vf_showinfo.c
libavfilter/vf_showinfo.c
+3
-1
No files found.
libavfilter/af_ashowinfo.c
View file @
7513234b
...
...
@@ -93,7 +93,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
av_log
(
ctx
,
AV_LOG_INFO
,
"n:%"
PRIu64
" pts:%"
PRId64
" pts_time:%f "
"fmt:%s chlayout:%s rate:%d nb_samples:%d "
"checksum:%08
X
"
,
"checksum:%08
"
PRIX32
"
"
,
s
->
frame
,
buf
->
pts
,
buf
->
pts
*
av_q2d
(
inlink
->
time_base
),
av_get_sample_fmt_name
(
buf
->
format
),
chlayout_str
,
buf
->
sample_rate
,
buf
->
nb_samples
,
...
...
@@ -101,7 +101,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
av_log
(
ctx
,
AV_LOG_INFO
,
"plane_checksums: [ "
);
for
(
i
=
0
;
i
<
planes
;
i
++
)
av_log
(
ctx
,
AV_LOG_INFO
,
"%08
X
"
,
s
->
plane_checksums
[
i
]);
av_log
(
ctx
,
AV_LOG_INFO
,
"%08
"
PRIX32
"
"
,
s
->
plane_checksums
[
i
]);
av_log
(
ctx
,
AV_LOG_INFO
,
"]
\n
"
);
s
->
frame
++
;
...
...
libavfilter/vf_showinfo.c
View file @
7513234b
...
...
@@ -22,6 +22,8 @@
* filter for showing textual video frame information
*/
#include <inttypes.h>
#include "libavutil/adler32.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
...
...
@@ -57,7 +59,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
av_log
(
ctx
,
AV_LOG_INFO
,
"n:%d pts:%"
PRId64
" pts_time:%f "
"fmt:%s sar:%d/%d s:%dx%d i:%c iskey:%d type:%c "
"checksum:%
u plane_checksum:[%u %u %u %u
]
\n
"
,
"checksum:%
"
PRIu32
" plane_checksum:[%"
PRIu32
" %"
PRIu32
" %"
PRIu32
" %"
PRIu32
"
]
\n
"
,
showinfo
->
frame
,
frame
->
pts
,
frame
->
pts
*
av_q2d
(
inlink
->
time_base
),
desc
->
name
,
...
...
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