changeset 8082:75d40b4b28ed libavcodec

Reset state after some frame header is found. Fixes issue704
author michael
date Wed, 29 Oct 2008 21:08:14 +0000
parents 2ca605b9c37a
children 1fe764a5c33e
files aac_ac3_parser.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/aac_ac3_parser.c	Wed Oct 29 06:26:56 2008 +0000
+++ b/aac_ac3_parser.c	Wed Oct 29 21:08:14 2008 +0000
@@ -49,6 +49,7 @@
             if(len<=0){
                 i=END_NOT_FOUND;
             }else{
+                s->state=0;
                 i-= s->header_size -1;
                 s->remaining_size = len;
                 if(!new_frame_start || pc->index+i<=0){