From 8870cf8277e4163bf94767a0c248214f218bd381 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 19 Apr 2008 11:14:55 +0000 Subject: [PATCH] This fixes the code so it is correct on both sides of the if(). Originally committed as revision 12902 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/aac_ac3_parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/aac_ac3_parser.c b/libavcodec/aac_ac3_parser.c index 189bdb4d15..f28f3f2678 100644 --- a/libavcodec/aac_ac3_parser.c +++ b/libavcodec/aac_ac3_parser.c @@ -51,8 +51,10 @@ get_next: }else{ i-= s->header_size -1; s->remaining_size = len; - if(!new_frame_start) + if(!new_frame_start){ + s->remaining_size += i; goto get_next; + } } } }