[vlc-commits] Avio: fix FTBFS with lavf < 54

Jean-Baptiste Kempf git at videolan.org
Mon Dec 30 12:59:47 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Dec 30 12:58:50 2013 +0100| [4980f54d25e9291acf70c2b3d4cfde2f320c1d07] | committer: Jean-Baptiste Kempf

Avio: fix FTBFS with lavf < 54

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4980f54d25e9291acf70c2b3d4cfde2f320c1d07
---

 modules/access/avio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/avio.c b/modules/access/avio.c
index 380d20d..9145fbf 100644
--- a/modules/access/avio.c
+++ b/modules/access/avio.c
@@ -328,7 +328,7 @@ static ssize_t Write(sout_access_out_t *p_access, block_t *p_buffer)
         val = url_write(p_sys->context, p_buffer->p_buffer, p_buffer->i_buffer);
         if (val < 0)
             goto error;
-        i_write += written;
+        i_write += val;
 #else
         avio_write(p_sys->context, p_buffer->p_buffer, p_buffer->i_buffer);
         avio_flush(p_sys->context);



More information about the vlc-commits mailing list