diff flvdec.c @ 4643:d148dbaebaca libavformat

Replace two 'return AVERROR(EAGAIN);' by continue. The latter are nicer and the EAGAIN were just added as example not because they made sense.
author michael
date Tue, 03 Mar 2009 20:24:17 +0000
parents ee5d7f52e4bc
children 063522a177cc
line wrap: on
line diff
--- a/flvdec.c	Tue Mar 03 18:19:44 2009 +0000
+++ b/flvdec.c	Tue Mar 03 20:24:17 2009 +0000
@@ -348,7 +348,7 @@
             av_log(s, AV_LOG_ERROR, "skipping flv packet: type %d, size %d, flags %d\n", type, size, flags);
     skip:
         url_fseek(s->pb, next, SEEK_SET);
-        return AVERROR(EAGAIN);
+        continue;
     }
 
     /* skip empty data packets */
@@ -372,7 +372,7 @@
        || st->discard >= AVDISCARD_ALL
        ){
         url_fseek(s->pb, next, SEEK_SET);
-        return AVERROR(EAGAIN);
+        continue;
     }
     if ((flags & FLV_VIDEO_FRAMETYPE_MASK) == FLV_FRAME_KEY)
         av_add_index_entry(st, pos, dts, size, 0, AVINDEX_KEYFRAME);