Revision 60ff1c44

View differences:

libavformat/asf.c
773 773
            asf->packet_multi_size -= asf->packet_obj_size;
774 774
            //printf("COMPRESS size  %d  %d  %d   ms:%d\n", asf->packet_obj_size, asf->packet_frag_timestamp, asf->packet_size_left, asf->packet_multi_size);
775 775
        }
776
        if(   /*asf->packet_frag_size == asf->packet_obj_size*/
777
              asf_st->frag_offset + asf->packet_frag_size <= asf_st->pkt.size
778
           && asf_st->frag_offset + asf->packet_frag_size > asf->packet_obj_size){
779
            av_log(s, AV_LOG_INFO, "ignoring invalid packet_obj_size (%d %d %d %d)\n",
780
                asf_st->frag_offset, asf->packet_frag_size,
781
                asf->packet_obj_size, asf_st->pkt.size);
782
            asf->packet_obj_size= asf_st->pkt.size;
783
        }
784

  
776 785
        if (   asf_st->pkt.size != asf->packet_obj_size
777 786
            || asf_st->frag_offset + asf->packet_frag_size > asf_st->pkt.size) { //FIXME is this condition sufficient?
778 787
            if(asf_st->pkt.data){

Also available in: Unified diff