Commit 10291562 authored by Michael Niedermayer's avatar Michael Niedermayer

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 0bd433a9.
parent 0b8002fd
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment