On 10/09/2012 11:52 PM, Janne Grunau wrote: > avio_size() reports the filesize which returns 0 for /dev/null. > avio_tell reports the current position. > --- > avconv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/avconv.c b/avconv.c > index 219e9e2..ee94ce1 100644 > --- a/avconv.c > +++ b/avconv.c > @@ -809,7 +809,7 @@ 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 > + if (total_size <= 0) // FIXME improve avio_size() so it works with non > seekable output too > total_size = avio_tell(oc->pb);
We might check that avio_tell doesn't error out for any reason. lu _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel