Browse Source

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.
tags/n0.8
Michael Niedermayer 15 years ago
parent
commit
10291562f3
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      libavformat/asfdec.c

+ 0
- 4
libavformat/asfdec.c View File

@@ -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…
Cancel
Save