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
434db571
Commit
434db571
authored
Nov 05, 2011
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: use avio_size() instead of deprecated file_size attribute.
parent
1e402774
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ffprobe.c
ffprobe.c
+3
-1
No files found.
ffprobe.c
View file @
434db571
...
@@ -748,6 +748,7 @@ static void show_streams(WriterContext *w, AVFormatContext *fmt_ctx)
...
@@ -748,6 +748,7 @@ static void show_streams(WriterContext *w, AVFormatContext *fmt_ctx)
static
void
show_format
(
WriterContext
*
w
,
AVFormatContext
*
fmt_ctx
)
static
void
show_format
(
WriterContext
*
w
,
AVFormatContext
*
fmt_ctx
)
{
{
char
val_str
[
128
];
char
val_str
[
128
];
int64_t
size
=
avio_size
(
fmt_ctx
->
pb
);
struct
print_buf
pbuf
=
{.
s
=
NULL
};
struct
print_buf
pbuf
=
{.
s
=
NULL
};
print_section_header
(
"format"
);
print_section_header
(
"format"
);
...
@@ -757,7 +758,8 @@ static void show_format(WriterContext *w, AVFormatContext *fmt_ctx)
...
@@ -757,7 +758,8 @@ static void show_format(WriterContext *w, AVFormatContext *fmt_ctx)
print_str
(
"format_long_name"
,
fmt_ctx
->
iformat
->
long_name
);
print_str
(
"format_long_name"
,
fmt_ctx
->
iformat
->
long_name
);
print_str
(
"start_time"
,
time_value_string
(
val_str
,
sizeof
(
val_str
),
fmt_ctx
->
start_time
,
&
AV_TIME_BASE_Q
));
print_str
(
"start_time"
,
time_value_string
(
val_str
,
sizeof
(
val_str
),
fmt_ctx
->
start_time
,
&
AV_TIME_BASE_Q
));
print_str
(
"duration"
,
time_value_string
(
val_str
,
sizeof
(
val_str
),
fmt_ctx
->
duration
,
&
AV_TIME_BASE_Q
));
print_str
(
"duration"
,
time_value_string
(
val_str
,
sizeof
(
val_str
),
fmt_ctx
->
duration
,
&
AV_TIME_BASE_Q
));
print_str
(
"size"
,
value_string
(
val_str
,
sizeof
(
val_str
),
fmt_ctx
->
file_size
,
unit_byte_str
));
if
(
size
>=
0
)
print_str
(
"size"
,
value_string
(
val_str
,
sizeof
(
val_str
),
size
,
unit_byte_str
));
print_str
(
"bit_rate"
,
value_string
(
val_str
,
sizeof
(
val_str
),
fmt_ctx
->
bit_rate
,
unit_bit_per_second_str
));
print_str
(
"bit_rate"
,
value_string
(
val_str
,
sizeof
(
val_str
),
fmt_ctx
->
bit_rate
,
unit_bit_per_second_str
));
show_tags
(
fmt_ctx
->
metadata
);
show_tags
(
fmt_ctx
->
metadata
);
print_section_footer
(
"format"
);
print_section_footer
(
"format"
);
...
...
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