[libav-commits] avidec: return 0, not packet size from read_packet().

Anton Khirnov git at libav.org
Sat Sep 29 09:30:45 CEST 2012


Module: libav
Branch: master
Commit: eeade678f0a2bac127aeed2fb68d8717a6463420

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Fri Sep 28 15:26:48 2012 +0200

avidec: return 0, not packet size from read_packet().

---

 libavformat/avidec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 9360e8e..b70367f 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1122,7 +1122,7 @@ resync:
             ast->packet_size= 0;
         }
 
-        return size;
+        return 0;
     }
 
     if ((err = avi_sync(s, 0)) < 0)



More information about the libav-commits mailing list