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 0bd433a916
.
This commit is contained in:
parent
0b8002fd68
commit
10291562f3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user