changeset 6650:2d1497d25251 libavcodec

This fixes the code so it is correct on both sides of the if().
author michael
date Sat, 19 Apr 2008 11:14:55 +0000
parents f7d73a268ef6
children abc8176ddf88
files aac_ac3_parser.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/aac_ac3_parser.c	Sat Apr 19 10:48:50 2008 +0000
+++ b/aac_ac3_parser.c	Sat Apr 19 11:14:55 2008 +0000
@@ -51,8 +51,10 @@
             }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;
+                }
             }
         }
     }