[FFmpeg-cvslog] asfdec: fix endless loop on EOF
Michael Niedermayer
git at videolan.org
Sun Dec 25 00:23:39 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 24 23:21:40 2011 +0100| [0d4404ed65e6ebfdf5e3c09f9e3a2a41dde18e4a] | committer: Michael Niedermayer
asfdec: fix endless loop on EOF
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0d4404ed65e6ebfdf5e3c09f9e3a2a41dde18e4a
---
libavformat/asfdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 5af112d..3f733f7 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -765,7 +765,7 @@ static int ff_asf_get_packet(AVFormatContext *s, AVIOContext *pb)
c= avio_r8(pb);
d= avio_r8(pb);
rsize+=3;
- }else{
+ }else if(!url_feof(pb)){
avio_seek(pb, -1, SEEK_CUR); //FIXME
}
More information about the ffmpeg-cvslog
mailing list