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
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
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
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
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
---