diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-04-19 11:14:55 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-04-19 11:14:55 +0000 |
commit | 8870cf8277e4163bf94767a0c248214f218bd381 (patch) | |
tree | 3399d935d2cd1c15caed8f5ff2569754caa2fd2c /libavcodec/aac_ac3_parser.c | |
parent | 7bc5f6e53ecf3adc4e4c73e8e9347a4e4418397c (diff) | |
download | ffmpeg-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.c | 4 |
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; + } } } } |