aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aac_ac3_parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-04-19 11:14:55 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-04-19 11:14:55 +0000
commit8870cf8277e4163bf94767a0c248214f218bd381 (patch)
tree3399d935d2cd1c15caed8f5ff2569754caa2fd2c /libavcodec/aac_ac3_parser.c
parent7bc5f6e53ecf3adc4e4c73e8e9347a4e4418397c (diff)
downloadffmpeg-8870cf8277e4163bf94767a0c248214f218bd381.tar.gz
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
Diffstat (limited to 'libavcodec/aac_ac3_parser.c')
-rw-r--r--libavcodec/aac_ac3_parser.c4
1 files changed, 3 insertions, 1 deletions
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;
+ }
}
}
}