comparison mov.c @ 1734:fc243e5a290e libavformat

remove some printf warnings
author bcoudurier
date Wed, 24 Jan 2007 15:59:58 +0000
parents 377e4b1a4439
children 746ff3525dd7
comparison
equal deleted inserted replaced
1733:377e4b1a4439 1734:fc243e5a290e
1095 if(entries >= UINT_MAX / sizeof(long)) 1095 if(entries >= UINT_MAX / sizeof(long))
1096 return -1; 1096 return -1;
1097 1097
1098 sc->keyframe_count = entries; 1098 sc->keyframe_count = entries;
1099 #ifdef DEBUG 1099 #ifdef DEBUG
1100 av_log(NULL, AV_LOG_DEBUG, "keyframe_count = %ld\n", sc->keyframe_count); 1100 av_log(NULL, AV_LOG_DEBUG, "keyframe_count = %d\n", sc->keyframe_count);
1101 #endif 1101 #endif
1102 sc->keyframes = av_malloc(entries * sizeof(long)); 1102 sc->keyframes = av_malloc(entries * sizeof(long));
1103 if (!sc->keyframes) 1103 if (!sc->keyframes)
1104 return -1; 1104 return -1;
1105 for(i=0; i<entries; i++) { 1105 for(i=0; i<entries; i++) {
1130 sc->sample_count = entries; 1130 sc->sample_count = entries;
1131 if (sample_size) 1131 if (sample_size)
1132 return 0; 1132 return 0;
1133 1133
1134 #ifdef DEBUG 1134 #ifdef DEBUG
1135 av_log(NULL, AV_LOG_DEBUG, "sample_size = %ld sample_count = %ld\n", sc->sample_size, sc->sample_count); 1135 av_log(NULL, AV_LOG_DEBUG, "sample_size = %d sample_count = %d\n", sc->sample_size, sc->sample_count);
1136 #endif 1136 #endif
1137 sc->sample_sizes = av_malloc(entries * sizeof(long)); 1137 sc->sample_sizes = av_malloc(entries * sizeof(long));
1138 if (!sc->sample_sizes) 1138 if (!sc->sample_sizes)
1139 return -1; 1139 return -1;
1140 for(i=0; i<entries; i++) { 1140 for(i=0; i<entries; i++) {