aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aac_ac3_parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-10-29 21:08:14 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-10-29 21:08:14 +0000
commitbf2cdefc6aa13677f20e905ea345fd878ed4211a (patch)
treeeaedef82fd964560bc626e2a5acdc887e12b2743 /libavcodec/aac_ac3_parser.c
parent2cdba8bfc43b818ca8037421c9a136fa89327c66 (diff)
downloadffmpeg-bf2cdefc6aa13677f20e905ea345fd878ed4211a.tar.gz
Reset state after some frame header is found.
Fixes issue704 Originally committed as revision 15742 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac_ac3_parser.c')
-rw-r--r--libavcodec/aac_ac3_parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/aac_ac3_parser.c b/libavcodec/aac_ac3_parser.c
index 20a989767c..82d7c049d3 100644
--- a/libavcodec/aac_ac3_parser.c
+++ b/libavcodec/aac_ac3_parser.c
@@ -49,6 +49,7 @@ get_next:
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){