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
91c2a33d
Commit
91c2a33d
authored
Dec 16, 2015
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: use print_val to print the frame pkt_size value
This allows to honour formatting options.
parent
fa2c1eab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ffprobe.c
ffprobe.c
+2
-1
No files found.
ffprobe.c
View file @
91c2a33d
...
@@ -1827,6 +1827,7 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
...
@@ -1827,6 +1827,7 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
AVFormatContext
*
fmt_ctx
)
AVFormatContext
*
fmt_ctx
)
{
{
AVBPrint
pbuf
;
AVBPrint
pbuf
;
char
val_str
[
128
];
const
char
*
s
;
const
char
*
s
;
int
i
;
int
i
;
...
@@ -1849,7 +1850,7 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
...
@@ -1849,7 +1850,7 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
print_duration_time
(
"pkt_duration_time"
,
av_frame_get_pkt_duration
(
frame
),
&
stream
->
time_base
);
print_duration_time
(
"pkt_duration_time"
,
av_frame_get_pkt_duration
(
frame
),
&
stream
->
time_base
);
if
(
av_frame_get_pkt_pos
(
frame
)
!=
-
1
)
print_fmt
(
"pkt_pos"
,
"%"
PRId64
,
av_frame_get_pkt_pos
(
frame
));
if
(
av_frame_get_pkt_pos
(
frame
)
!=
-
1
)
print_fmt
(
"pkt_pos"
,
"%"
PRId64
,
av_frame_get_pkt_pos
(
frame
));
else
print_str_opt
(
"pkt_pos"
,
"N/A"
);
else
print_str_opt
(
"pkt_pos"
,
"N/A"
);
if
(
av_frame_get_pkt_size
(
frame
)
!=
-
1
)
print_
fmt
(
"pkt_size"
,
"%d"
,
av_frame_get_pkt_size
(
frame
)
);
if
(
av_frame_get_pkt_size
(
frame
)
!=
-
1
)
print_
val
(
"pkt_size"
,
av_frame_get_pkt_size
(
frame
),
unit_byte_str
);
else
print_str_opt
(
"pkt_size"
,
"N/A"
);
else
print_str_opt
(
"pkt_size"
,
"N/A"
);
switch
(
stream
->
codec
->
codec_type
)
{
switch
(
stream
->
codec
->
codec_type
)
{
...
...
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