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
44129e38
Commit
44129e38
authored
Dec 15, 2016
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: Do not pass NULL to avio_tell
The null demuxer does not have a backing AVIOContext.
parent
f8f7ad75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
avconv.c
avconv.c
+12
-11
No files found.
avconv.c
View file @
44129e38
...
...
@@ -909,7 +909,7 @@ static void print_report(int is_last_report, int64_t timer_start)
char
buf
[
1024
];
OutputStream
*
ost
;
AVFormatContext
*
oc
;
int64_t
total_size
;
int64_t
total_size
=
0
;
AVCodecContext
*
enc
;
int
frame_number
,
vid
,
i
;
double
bitrate
,
ti1
,
pts
;
...
...
@@ -934,16 +934,17 @@ static void print_report(int is_last_report, int64_t timer_start)
oc
=
output_files
[
0
]
->
ctx
;
total_size
=
avio_size
(
oc
->
pb
);
if
(
total_size
<=
0
)
// FIXME improve avio_size() so it works with non seekable output too
total_size
=
avio_tell
(
oc
->
pb
);
if
(
total_size
<
0
)
{
char
errbuf
[
128
];
av_strerror
(
total_size
,
errbuf
,
sizeof
(
errbuf
));
av_log
(
NULL
,
AV_LOG_VERBOSE
,
"Bitrate not available, "
"avio_tell() failed: %s
\n
"
,
errbuf
);
total_size
=
0
;
if
(
oc
->
pb
)
{
total_size
=
avio_size
(
oc
->
pb
);
if
(
total_size
<=
0
)
// FIXME improve avio_size() so it works with non seekable output too
total_size
=
avio_tell
(
oc
->
pb
);
if
(
total_size
<
0
)
{
char
errbuf
[
128
];
av_strerror
(
total_size
,
errbuf
,
sizeof
(
errbuf
));
av_log
(
NULL
,
AV_LOG_VERBOSE
,
"Bitrate not available, "
"avio_tell() failed: %s
\n
"
,
errbuf
);
total_size
=
0
;
}
}
buf
[
0
]
=
'\0'
;
...
...
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