[FFmpeg-cvslog] r17783 - trunk/libavformat/flvdec.c

michael subversion
Tue Mar 3 21:24:17 CET 2009


Author: michael
Date: Tue Mar  3 21:24:17 2009
New Revision: 17783

Log:
Replace 2 return AVERROR(EAGAIN); by continue, these being nicer
and the EAGAIN where just added as example not because they made sense.

Modified:
   trunk/libavformat/flvdec.c

Modified: trunk/libavformat/flvdec.c
==============================================================================
--- trunk/libavformat/flvdec.c	Tue Mar  3 20:50:04 2009	(r17782)
+++ trunk/libavformat/flvdec.c	Tue Mar  3 21:24:17 2009	(r17783)
@@ -348,7 +348,7 @@ static int flv_read_packet(AVFormatConte
             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(AVFormatConte
        || 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);




More information about the ffmpeg-cvslog mailing list