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
136ee32d
Commit
136ee32d
authored
Jan 12, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avprobe: use avio_size() instead of deprecated AVFormatContext.file_size.
parent
44bcab58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
avprobe.c
avprobe.c
+4
-2
No files found.
avprobe.c
View file @
136ee32d
...
...
@@ -243,6 +243,7 @@ static void show_format(AVFormatContext *fmt_ctx)
{
AVDictionaryEntry
*
tag
=
NULL
;
char
val_str
[
128
];
int64_t
size
=
fmt_ctx
->
pb
?
avio_size
(
fmt_ctx
->
pb
)
:
-
1
;
printf
(
"[FORMAT]
\n
"
);
...
...
@@ -254,8 +255,9 @@ static void show_format(AVFormatContext *fmt_ctx)
&
AV_TIME_BASE_Q
));
printf
(
"duration=%s
\n
"
,
time_value_string
(
val_str
,
sizeof
(
val_str
),
fmt_ctx
->
duration
,
&
AV_TIME_BASE_Q
));
printf
(
"size=%s
\n
"
,
value_string
(
val_str
,
sizeof
(
val_str
),
fmt_ctx
->
file_size
,
unit_byte_str
));
printf
(
"size=%s
\n
"
,
size
>=
0
?
value_string
(
val_str
,
sizeof
(
val_str
),
size
,
unit_byte_str
)
:
"unknown"
);
printf
(
"bit_rate=%s
\n
"
,
value_string
(
val_str
,
sizeof
(
val_str
),
fmt_ctx
->
bit_rate
,
unit_bit_per_second_str
));
...
...
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