comparison asf.c @ 136:6b74809d2496 libavformat

Warning and compatibility fixes.
author mellum
date Sat, 24 May 2003 18:48:30 +0000
parents 497ae2790081
children 6c9d6422a2f6
comparison
equal deleted inserted replaced
135:56590088f801 136:6b74809d2496
991 uint32_t packet_length, padsize; 991 uint32_t packet_length, padsize;
992 int rsize = 11; 992 int rsize = 11;
993 int c = get_byte(pb); 993 int c = get_byte(pb);
994 if (c != 0x82) { 994 if (c != 0x82) {
995 if (!url_feof(pb)) 995 if (!url_feof(pb))
996 printf("ff asf bad header %x at:%Ld\n", c, url_ftell(pb)); 996 printf("ff asf bad header %x at:%lld\n", c, url_ftell(pb));
997 return -EIO; 997 return -EIO;
998 } 998 }
999 if ((c & 0x0f) == 2) { // always true for now 999 if ((c & 0x0f) == 2) { // always true for now
1000 if (get_le16(pb) != 0) { 1000 if (get_le16(pb) != 0) {
1001 if (!url_feof(pb)) 1001 if (!url_feof(pb))
1218 return 0; 1218 return 0;
1219 } 1219 }
1220 1220
1221 static int asf_read_seek(AVFormatContext *s, int64_t pts) 1221 static int asf_read_seek(AVFormatContext *s, int64_t pts)
1222 { 1222 {
1223 printf("SEEK TO %Ld", pts); 1223 printf("SEEK TO %lld", pts);
1224 return -1; 1224 return -1;
1225 } 1225 }
1226 1226
1227 static AVInputFormat asf_iformat = { 1227 static AVInputFormat asf_iformat = {
1228 "asf", 1228 "asf",