changeset 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 8b8be8f2b647
children 47717d5239fa
files aac_ac3_parser.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
                 }