changeset 3799:2f2fbec96aeb libavformat

skip empty flv data packets, fix issue #602
author bcoudurier
date Fri, 29 Aug 2008 22:10:34 +0000
parents 181ce3b7ca8b
children 88e7a94697d3
files flvdec.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flvdec.c	Fri Aug 29 22:07:01 2008 +0000
+++ b/flvdec.c	Fri Aug 29 22:10:34 2008 +0000
@@ -339,6 +339,10 @@
         continue;
     }
 
+    /* skip empty data packets */
+    if (!size)
+        continue;
+
     /* now find stream */
     for(i=0;i<s->nb_streams;i++) {
         st = s->streams[i];