comparison utils.c @ 4629:3176b13b0881 libavformat

cosmetics: Fix indentation.
author diego
date Tue, 03 Mar 2009 12:57:07 +0000
parents 166d293b44fa
children a9c659873a1e
comparison
equal deleted inserted replaced
4628:e2fa3c2bc471 4629:3176b13b0881
1315 1315
1316 if(e->timestamp <= target_ts || e->pos == e->min_distance){ 1316 if(e->timestamp <= target_ts || e->pos == e->min_distance){
1317 pos_min= e->pos; 1317 pos_min= e->pos;
1318 ts_min= e->timestamp; 1318 ts_min= e->timestamp;
1319 #ifdef DEBUG_SEEK 1319 #ifdef DEBUG_SEEK
1320 av_log(s, AV_LOG_DEBUG, "using cached pos_min=0x%"PRIx64" dts_min=%"PRId64"\n", 1320 av_log(s, AV_LOG_DEBUG, "using cached pos_min=0x%"PRIx64" dts_min=%"PRId64"\n",
1321 pos_min,ts_min); 1321 pos_min,ts_min);
1322 #endif 1322 #endif
1323 }else{ 1323 }else{
1324 assert(index==0); 1324 assert(index==0);
1325 } 1325 }
1326 1326
1331 assert(e->timestamp >= target_ts); 1331 assert(e->timestamp >= target_ts);
1332 pos_max= e->pos; 1332 pos_max= e->pos;
1333 ts_max= e->timestamp; 1333 ts_max= e->timestamp;
1334 pos_limit= pos_max - e->min_distance; 1334 pos_limit= pos_max - e->min_distance;
1335 #ifdef DEBUG_SEEK 1335 #ifdef DEBUG_SEEK
1336 av_log(s, AV_LOG_DEBUG, "using cached pos_max=0x%"PRIx64" pos_limit=0x%"PRIx64" dts_max=%"PRId64"\n", 1336 av_log(s, AV_LOG_DEBUG, "using cached pos_max=0x%"PRIx64" pos_limit=0x%"PRIx64" dts_max=%"PRId64"\n",
1337 pos_max,pos_limit, ts_max); 1337 pos_max,pos_limit, ts_max);
1338 #endif 1338 #endif
1339 } 1339 }
1340 } 1340 }
1341 1341
1342 pos= av_gen_search(s, stream_index, target_ts, pos_min, pos_max, pos_limit, ts_min, ts_max, flags, &ts, avif->read_timestamp); 1342 pos= av_gen_search(s, stream_index, target_ts, pos_min, pos_max, pos_limit, ts_min, ts_max, flags, &ts, avif->read_timestamp);
1430 if(pos == pos_max) 1430 if(pos == pos_max)
1431 no_change++; 1431 no_change++;
1432 else 1432 else
1433 no_change=0; 1433 no_change=0;
1434 #ifdef DEBUG_SEEK 1434 #ifdef DEBUG_SEEK
1435 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); 1435 av_log(s, AV_LOG_DEBUG, "%"PRId64" %"PRId64" %"PRId64" / %"PRId64" %"PRId64" %"PRId64" target:%"PRId64" limit:%"PRId64" start:%"PRId64" noc:%d\n",
1436 pos_min, pos, pos_max, ts_min, ts, ts_max, target_ts, pos_limit,
1437 start_pos, no_change);
1436 #endif 1438 #endif
1437 if(ts == AV_NOPTS_VALUE){ 1439 if(ts == AV_NOPTS_VALUE){
1438 av_log(s, AV_LOG_ERROR, "read_timestamp() failed in the middle\n"); 1440 av_log(s, AV_LOG_ERROR, "read_timestamp() failed in the middle\n");
1439 return -1; 1441 return -1;
1440 } 1442 }