# HG changeset patch # User michael # Date 1222052426 0 # Node ID ad95dd08b31abb21756a3b25bafd51f6c524a490 # Parent 8b8be8f2b647a7a3e6e48a0daaea1830f54435a5 Fix all the recent problems Justin had run into with the AC3 parser, including issue 459. diff -r 8b8be8f2b647 -r ad95dd08b31a aac_ac3_parser.c --- a/aac_ac3_parser.c Mon Sep 22 02:32:22 2008 +0000 +++ b/aac_ac3_parser.c Mon Sep 22 03:00:26 2008 +0000 @@ -51,7 +51,7 @@ }else{ i-= s->header_size -1; s->remaining_size = len; - if(!new_frame_start){ + if(!new_frame_start || pc->index+i<=0){ s->remaining_size += i; goto get_next; }