diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-05-12 16:04:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-12 16:04:13 +0200 |
commit | 10291562f37d00fb3fb78ec86e0353e474c0eccc (patch) | |
tree | d3855d126105f24686d3dc345226a2b4e3e61946 | |
parent | 0b8002fd6865f08d100be3c6ddb13efd4b09870d (diff) | |
download | ffmpeg-10291562f37d00fb3fb78ec86e0353e474c0eccc.tar.gz |
Revert "asfdec: fix assert failure on invalid files"
Reverting this pulled change as author considers this change buggy compared to his
original version.
This reverts commit 0bd433a916cd8d98fce47742fbf6d0f90ec941c4.
-rw-r--r-- | libavformat/asfdec.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 7d0409aa83..0641688d3d 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -856,10 +856,6 @@ static int asf_read_frame_header(AVFormatContext *s, AVIOContext *pb){ } //printf("Fragsize %d\n", asf->packet_frag_size); } else { - if (rsize > asf->packet_size_left) { - av_log(s, AV_LOG_ERROR, "packet_replic_size is invalid\n"); - return -1; - } asf->packet_frag_size = asf->packet_size_left - rsize; //printf("Using rest %d %d %d\n", asf->packet_frag_size, asf->packet_size_left, rsize); } |