This fixes the code so it is correct on both sides of the if().
[ffmpeg.git] / 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;
+                }
             }
         }
     }