# HG changeset patch # User michael # Date 1208603695 0 # Node ID 2d1497d25251cefec5eba86b32bf331811efeb9a # Parent f7d73a268ef67a058276a12952646dbbf20f19e8 This fixes the code so it is correct on both sides of the if(). diff -r f7d73a268ef6 -r 2d1497d25251 aac_ac3_parser.c --- 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; + } } } }