]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Replace 2 return AVERROR(EAGAIN); by continue, these being nicer
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 3 Mar 2009 20:24:17 +0000 (20:24 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 3 Mar 2009 20:24:17 +0000 (20:24 +0000)
and the EAGAIN where just added as example not because they made sense.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17783 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/flvdec.c

index c925e545393ac99ddc5b2be6d36f9b3239c67e7e..89ece0fa88244934473de07ce85504cc842944ef 100644 (file)
@@ -348,7 +348,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
             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 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
        || 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);