[Ffmpeg-cvslog] r6632 - trunk/libavformat/amr.c

michael subversion
Wed Oct 11 01:28:28 CEST 2006


Author: michael
Date: Wed Oct 11 01:28:27 2006
New Revision: 6632

Modified:
   trunk/libavformat/amr.c

Log:
return cleanup


Modified: trunk/libavformat/amr.c
==============================================================================
--- trunk/libavformat/amr.c	(original)
+++ trunk/libavformat/amr.c	Wed Oct 11 01:28:27 2006
@@ -48,7 +48,7 @@
     }
     else
     {
-        //This is an error!
+        return -1;
     }
     put_flush_packet(pb);
     return 0;
@@ -168,8 +168,6 @@
             av_free_packet(pkt);
             return AVERROR_IO;
         }
-
-        return 0;
     }
     else if(enc->codec_id == CODEC_ID_AMR_WB)
     {
@@ -203,13 +201,12 @@
             av_free_packet(pkt);
             return AVERROR_IO;
         }
-
-        return 0;
     }
     else
     {
-        return AVERROR_IO;
+        assert(0);
     }
+    return 0;
 }
 
 static int amr_read_close(AVFormatContext *s)




More information about the ffmpeg-cvslog mailing list