comparison asf.c @ 1388:3172bf94c066 libavformat

Use proper PRI?64 macros for %ll? format to fix printf format warnings: utils.c:833: warning: format ¡Æ%lld¡Ç expects type ¡Ælong long int¡Ç, but argument 5 has type ¡Æint64_t¡Ç utils.c:833: warning: format ¡Æ%lld¡Ç expects type ¡Ælong long int¡Ç, but argument 6 has type ¡Æint64_t¡Ç utils.c:854: warning: format ¡Æ%lld¡Ç expects type ¡Ælong long int¡Ç, but argument 5 has type ¡Æint64_t¡Ç utils.c:854: warning: format ¡Æ%lld¡Ç expects type ¡Ælong long int¡Ç, but argument 6 has type ¡Æint64_t¡Ç asf.c:872: warning: format ¡Æ%Lx¡Ç expects type ¡Ælong long unsigned int¡Ç, but argument 4 has type ¡Æint64_t¡Ç mov.c:1754: warning: format ¡Æ%llx¡Ç expects type ¡Ælong long unsigned int¡Ç, but argument 5 has type ¡Æint64_t¡Ç Approved by Michael.
author rathann
date Sat, 14 Oct 2006 20:43:39 +0000
parents 0899bfe4105c
children 3b00fb8ef8e4
comparison
equal deleted inserted replaced
1387:e7412266a076 1388:3172bf94c066
867 gsize = get_le64(&s->pb); 867 gsize = get_le64(&s->pb);
868 get_guid(&s->pb, &g); 868 get_guid(&s->pb, &g);
869 itime=get_le64(&s->pb); 869 itime=get_le64(&s->pb);
870 pct=get_le32(&s->pb); 870 pct=get_le32(&s->pb);
871 ict=get_le32(&s->pb); 871 ict=get_le32(&s->pb);
872 av_log(NULL, AV_LOG_DEBUG, "itime:0x%Lx, pct:%d, ict:%d\n",itime,pct,ict); 872 av_log(NULL, AV_LOG_DEBUG, "itime:0x%"PRIx64", pct:%d, ict:%d\n",itime,pct,ict);
873 873
874 for (i=0;i<ict;i++){ 874 for (i=0;i<ict;i++){
875 int pktnum=get_le32(&s->pb); 875 int pktnum=get_le32(&s->pb);
876 int pktct =get_le16(&s->pb); 876 int pktct =get_le16(&s->pb);
877 av_log(NULL, AV_LOG_DEBUG, "pktnum:%d, pktct:%d\n", pktnum, pktct); 877 av_log(NULL, AV_LOG_DEBUG, "pktnum:%d, pktct:%d\n", pktnum, pktct);
931 // 931 //
932 // av_free_packet(&pkt); 932 // av_free_packet(&pkt);
933 // } 933 // }
934 934
935 /* do the seek */ 935 /* do the seek */
936 av_log(NULL, AV_LOG_DEBUG, "SEEKTO: %Ld\n", pos); 936 av_log(NULL, AV_LOG_DEBUG, "SEEKTO: %"PRId64"\n", pos);
937 url_fseek(&s->pb, pos, SEEK_SET); 937 url_fseek(&s->pb, pos, SEEK_SET);
938 } 938 }
939 asf_reset_header(s); 939 asf_reset_header(s);
940 return 0; 940 return 0;
941 } 941 }