# HG changeset patch # User michael # Date 1236111857 0 # Node ID d148dbaebaca33b394308318b031228c2c9a83ec # Parent 60d5f09973514457c4c27b81f00e53f731fed526 Replace two 'return AVERROR(EAGAIN);' by continue. The latter are nicer and the EAGAIN were just added as example not because they made sense. diff -r 60d5f0997351 -r d148dbaebaca flvdec.c --- 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);