Merge commit '1b891d17c531e8a63c2974aab4bf997ce70746f3'
* commit '1b891d17c531e8a63c2974aab4bf997ce70746f3': avconv: fix bitrate report when writing to /dev/null avfilter: fix graphparser memleaks on error paths rawdec: remove ff_raw_read_header pcmdec: remove dependency from rawdec g722: refactor out of rawdec.c rawvideo: use a specific read_header Conflicts: ffmpeg.c libavformat/Makefile libavformat/rawdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
10
ffmpeg.c
10
ffmpeg.c
@ -1082,10 +1082,14 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
|
||||
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
|
||||
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)
|
||||
total_size = 0;
|
||||
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';
|
||||
|
Reference in New Issue
Block a user