diff aac_ac3_parser.c @ 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 ad95dd08b31a
children 04423b2f6e0b
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){