[libav-devel] [PATCH 1/1] avconv: fix bitrate report when writing to /dev/null

2012-10-24 Thread Janne Grunau
avio_size() reports the filesize which returns 0 for /dev/null. avio_tell() reports the current position. Also handle errors from avio_tell(). --- avconv.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/avconv.c b/avconv.c index bf1e2fa..54a0e2a 100644 --- a/avconv.c

Re: [libav-devel] [PATCH 1/1] avconv: fix bitrate report when writing to /dev/null

2012-10-24 Thread Luca Barbato
On 10/24/2012 04:51 PM, Janne Grunau wrote: avio_size() reports the filesize which returns 0 for /dev/null. avio_tell() reports the current position. Ok. ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH 1/1] avconv: fix bitrate report when writing to /dev/null

2012-10-10 Thread Derek Buitenhuis
On 09/10/2012 6:12 PM, Luca Barbato wrote: We might check that avio_tell doesn't error out for any reason. Agreed, but shouldn't that be a separate patch? - Derek ___ libav-devel mailing list libav-devel@libav.org

[libav-devel] [PATCH 1/1] avconv: fix bitrate report when writing to /dev/null

2012-10-09 Thread Janne Grunau
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

Re: [libav-devel] [PATCH 1/1] avconv: fix bitrate report when writing to /dev/null

2012-10-09 Thread Luca Barbato
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 ---