This fixes the code so it is correct on both sides of the if().
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 19 Apr 2008 11:14:55 +0000 (11:14 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 19 Apr 2008 11:14:55 +0000 (11:14 +0000)
Originally committed as revision 12902 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/aac_ac3_parser.c

index 189bdb4..f28f3f2 100644 (file)
@@ -51,8 +51,10 @@ get_next:
             }else{
                 i-= s->header_size -1;
                 s->remaining_size = len;
-                if(!new_frame_start)
+                if(!new_frame_start){
+                    s->remaining_size += i;
                     goto get_next;
+                }
             }
         }
     }