Revision 5acdd6e6

View differences:

libav/asf.c
969 969
    int rsize = 11;
970 970
    int c = get_byte(pb);
971 971
    if (c != 0x82) {
972
	printf("BAD HRD %x  at:%Ld\n", c, url_ftell(pb));
972
        if (!url_feof(pb))
973
	    printf("ff asf bad header %x  at:%Ld\n", c, url_ftell(pb));
973 974
	return -EIO;
974 975
    }
975 976
    if ((c & 0x0f) == 2) { // always true for now
976 977
	if (get_le16(pb) != 0) {
977
	    printf("ff asf BAD NO ZERO\n");
978
            if (!url_feof(pb))
979
		printf("ff asf bad non zero\n");
978 980
	    return -EIO;
979 981
	}
980 982
    }
......
1022 1024
	    url_fskip(pb, ret);
1023 1025
	    ret = asf_get_packet(s);
1024 1026
	    //printf("READ ASF PACKET  %d   r:%d   c:%d\n", ret, asf->packet_size_left, pc++);
1025
	    if (ret < 0)
1027
	    if (ret < 0 || url_feof(pb))
1026 1028
		return -EIO;
1027 1029
            asf->packet_time_start = 0;
1028 1030
            continue;

Also available in: Unified diff