]> git.sesse.net Git - ffmpeg/commitdiff
no limits!, warning is enough
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Feb 2004 00:03:11 +0000 (00:03 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Feb 2004 00:03:11 +0000 (00:03 +0000)
Originally committed as revision 2757 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/swf.c

index bf740d3e918d7d2a2522700b1f346de8560dc8dd..fd70e545218d5c24a87347634c8c616a4ef244dc 100644 (file)
@@ -478,8 +478,8 @@ static int swf_write_video(AVFormatContext *s,
     int outSamples = 0;
     
     /* Flash Player limit */
-    if ( swf->swf_frame_number >= 16000 ) {
-        return 0;
+    if ( swf->swf_frame_number == 16000 ) {
+        fprintf(stderr, "warning: Flash Player limit of 16000 frames reached\n");
     }
 
     /* Store video data in queue */
@@ -679,8 +679,8 @@ static int swf_write_audio(AVFormatContext *s,
     int c = 0;
 
     /* Flash Player limit */
-    if ( swf->swf_frame_number >= 16000 ) {
-        return 0;
+    if ( swf->swf_frame_number == 16000 ) {
+        fprintf(stderr, "warning: Flash Player limit of 16000 frames reached\n");
     }
 
     if (enc->codec_id == CODEC_ID_MP3 ) {