changeset 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 60d5f0997351
children 2962d395431b
files flvdec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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);