[SCM] libav/experimental: 10l, get_byte returning 0 on error can cause a hang. So let's try with 1 instead...

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:46:00 UTC 2013


The following commit has been merged in the experimental branch:
commit d3c71c500225e3ad8ac9927f51f65ea0300d7558
Author: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Date:   Sun Jan 15 21:33:06 2006 +0000

    10l, get_byte returning 0 on error can cause a hang. So let's try with 1 instead...
    
    Originally committed as revision 4862 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/lzo.c b/libavcodec/lzo.c
index ab7766b..08efcdc 100644
--- a/libavcodec/lzo.c
+++ b/libavcodec/lzo.c
@@ -34,7 +34,7 @@ static inline int get_byte(LZOContext *c) {
     if (c->in < c->in_end)
         return *c->in++;
     c->error |= LZO_INPUT_DEPLETED;
-    return 0;
+    return 1;
 }
 
 /**

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list