summaryrefslogtreecommitdiff
path: root/libavcodec/aac_ac3_parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-09-22 03:00:26 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-09-22 03:00:26 +0000
commit8dbd9cb6953aa3d01c3b4d65004e0c3e3ace245b (patch)
tree8380f91dd6e5f56f564e5c54a652b3fa9cd5dd08 /libavcodec/aac_ac3_parser.c
parent48e025e5b6abf462d62a3d7cd8ce84d0ceeb4e46 (diff)
Fix all the recent problems Justin had run into with the AC3 parser,
including issue 459. Originally committed as revision 15381 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aac_ac3_parser.c')
-rw-r--r--libavcodec/aac_ac3_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aac_ac3_parser.c b/libavcodec/aac_ac3_parser.c
index d0c912a606..20a989767c 100644
--- a/libavcodec/aac_ac3_parser.c
+++ b/libavcodec/aac_ac3_parser.c
@@ -51,7 +51,7 @@ get_next:
}else{
i-= s->header_size -1;
s->remaining_size = len;
- if(!new_frame_start){
+ if(!new_frame_start || pc->index+i<=0){
s->remaining_size += i;
goto get_next;
}