comparison utils.c @ 2034:355147fa5c72 libavformat

dont assert(0) due to buggy rm demuxer
author michael
date Sun, 22 Apr 2007 18:48:07 +0000
parents 1f882c0d0b79
children 964dff992628
comparison
equal deleted inserted replaced
2033:1f882c0d0b79 2034:355147fa5c72
1215 else 1215 else
1216 no_change=0; 1216 no_change=0;
1217 #ifdef DEBUG_SEEK 1217 #ifdef DEBUG_SEEK
1218 av_log(s, AV_LOG_DEBUG, "%"PRId64" %"PRId64" %"PRId64" / %"PRId64" %"PRId64" %"PRId64" target:%"PRId64" limit:%"PRId64" start:%"PRId64" noc:%d\n", pos_min, pos, pos_max, ts_min, ts, ts_max, target_ts, pos_limit, start_pos, no_change); 1218 av_log(s, AV_LOG_DEBUG, "%"PRId64" %"PRId64" %"PRId64" / %"PRId64" %"PRId64" %"PRId64" target:%"PRId64" limit:%"PRId64" start:%"PRId64" noc:%d\n", pos_min, pos, pos_max, ts_min, ts, ts_max, target_ts, pos_limit, start_pos, no_change);
1219 #endif 1219 #endif
1220 if(ts == AV_NOPTS_VALUE){
1221 av_log(s, AV_LOG_ERROR, "read_timestamp() failed in the middle\n");
1222 return -1;
1223 }
1220 assert(ts != AV_NOPTS_VALUE); 1224 assert(ts != AV_NOPTS_VALUE);
1221 if (target_ts <= ts) { 1225 if (target_ts <= ts) {
1222 pos_limit = start_pos - 1; 1226 pos_limit = start_pos - 1;
1223 pos_max = pos; 1227 pos_max = pos;
1224 ts_max = ts; 1228 ts_max = ts;