[FFmpeg-soc] [soc]: r1492 - qcelp/qcelp_parser.c

reynaldo subversion at mplayerhq.hu
Sun Dec 2 03:29:02 CET 2007


Author: reynaldo
Date: Sun Dec  2 03:29:01 2007
New Revision: 1492

Log:
Cosmetics

Modified:
   qcelp/qcelp_parser.c

Modified: qcelp/qcelp_parser.c
==============================================================================
--- qcelp/qcelp_parser.c	(original)
+++ qcelp/qcelp_parser.c	Sun Dec  2 03:29:01 2007
@@ -51,6 +51,10 @@ static int qcelp_find_frame_end(ParseCon
         case  4:             // RATE_OCTAVE in 'codec frame' fmt
         case  3:             // RATE_OCTAVE
             return buf_size;
+        case  2:
+        case  1:
+        case  0:
+            return END_NOT_FOUND;
     }
 
     /*
@@ -61,9 +65,6 @@ static int qcelp_find_frame_end(ParseCon
      * http://tools.ietf.org/html/draft-mckay-qcelp-02
      */
 
-    if(buf_size < 3)
-        return END_NOT_FOUND;
-
     switch(buf[0])
     {
         case 4:
@@ -97,7 +98,7 @@ static int qcelp_parse(AVCodecParserCont
     {
         next=qcelp_find_frame_end(pc, buf, buf_size);
 
-        if (ff_combine_frame(pc, next, &buf, &buf_size) < 0)
+        if(ff_combine_frame(pc, next, &buf, &buf_size) < 0)
         {
             *poutbuf = NULL;
             *poutbuf_size = 0;



More information about the FFmpeg-soc mailing list