diff aac_ac3_parser.c @ 7903:ad95dd08b31a libavcodec

Fix all the recent problems Justin had run into with the AC3 parser, including issue 459.
author michael
date Mon, 22 Sep 2008 03:00:26 +0000
parents e5f7a43f63ae
children 75d40b4b28ed
line wrap: on
line diff
--- 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;
                 }