[SCM] libav/experimental: * turns out write_packet is supposed to return 0 on success, not how many bytes were written.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:39:11 UTC 2013


The following commit has been merged in the experimental branch:
commit ec26a167ee4835d237c0d6700df9a661e38994c4
Author: Roman Shaposhnik <roman at shaposhnik.org>
Date:   Wed Feb 11 02:28:34 2004 +0000

       * turns out write_packet is supposed to return 0 on success, not
         how many bytes were written.
    
    Originally committed as revision 2770 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/dv.c b/libavformat/dv.c
index a376741..dacf4e2 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -869,7 +869,7 @@ static int dv_write_packet(struct AVFormatContext *s,
         put_buffer(&s->pb, frame, fsize); 
         put_flush_packet(&s->pb);
     } 
-    return fsize;
+    return 0;
 }
 
 /* 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list