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
1a490df1
Commit
1a490df1
authored
Dec 14, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: show pkt_size in frame
Fix trac ticket #2027.
parent
96d815fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
ffprobe.xsd
doc/ffprobe.xsd
+1
-0
ffprobe.c
ffprobe.c
+2
-0
No files found.
doc/ffprobe.xsd
View file @
1a490df1
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
<xsd:attribute
name=
"pkt_duration"
type=
"xsd:long"
/>
<xsd:attribute
name=
"pkt_duration"
type=
"xsd:long"
/>
<xsd:attribute
name=
"pkt_duration_time"
type=
"xsd:float"
/>
<xsd:attribute
name=
"pkt_duration_time"
type=
"xsd:float"
/>
<xsd:attribute
name=
"pkt_pos"
type=
"xsd:long"
/>
<xsd:attribute
name=
"pkt_pos"
type=
"xsd:long"
/>
<xsd:attribute
name=
"pkt_size"
type=
"xsd:int"
/>
<!-- audio attributes -->
<!-- audio attributes -->
<xsd:attribute
name=
"sample_fmt"
type=
"xsd:string"
/>
<xsd:attribute
name=
"sample_fmt"
type=
"xsd:string"
/>
...
...
ffprobe.c
View file @
1a490df1
...
@@ -1476,6 +1476,8 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
...
@@ -1476,6 +1476,8 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
print_duration_time
(
"pkt_duration_time"
,
frame
->
pkt_duration
,
&
stream
->
time_base
);
print_duration_time
(
"pkt_duration_time"
,
frame
->
pkt_duration
,
&
stream
->
time_base
);
if
(
frame
->
pkt_pos
!=
-
1
)
print_fmt
(
"pkt_pos"
,
"%"
PRId64
,
frame
->
pkt_pos
);
if
(
frame
->
pkt_pos
!=
-
1
)
print_fmt
(
"pkt_pos"
,
"%"
PRId64
,
frame
->
pkt_pos
);
else
print_str_opt
(
"pkt_pos"
,
"N/A"
);
else
print_str_opt
(
"pkt_pos"
,
"N/A"
);
if
(
frame
->
pkt_size
!=
-
1
)
print_fmt
(
"pkt_size"
,
"%d"
,
av_frame_get_pkt_size
(
frame
));
else
print_str_opt
(
"pkt_size"
,
"N/A"
);
switch
(
stream
->
codec
->
codec_type
)
{
switch
(
stream
->
codec
->
codec_type
)
{
AVRational
sar
;
AVRational
sar
;
...
...
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