Align the seek regression test output for better readability.

Originally committed as revision 20309 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Reimar Döffinger 15 years ago
parent 1953898162
commit 933018e249
  1. 7146
      tests/seek.regression.ref
  2. 8
      tests/seek_test.c

File diff suppressed because it is too large Load Diff

@ -93,11 +93,11 @@ int main(int argc, char **argv)
memset(&pkt, 0, sizeof(pkt)); memset(&pkt, 0, sizeof(pkt));
if(ret>=0){ if(ret>=0){
ret= av_read_frame(ic, &pkt); ret= av_read_frame(ic, &pkt);
printf("ret:%s", ret_str(ret));
if(ret>=0){ if(ret>=0){
st= ic->streams[pkt.stream_index]; st= ic->streams[pkt.stream_index];
printf(" st:%2d dts:%f pts:%f pos:%" PRId64 " size:%d flags:%d", pkt.stream_index, pkt.dts*av_q2d(st->time_base), pkt.pts*av_q2d(st->time_base), pkt.pos, pkt.size, pkt.flags); printf("ret:%-10s st:%2d flags:%d dts:%9f pts:%9f pos:%7" PRId64 " size:%6d", ret_str(ret), pkt.stream_index, pkt.flags, pkt.dts*av_q2d(st->time_base), pkt.pts*av_q2d(st->time_base), pkt.pos, pkt.size);
} } else
printf("ret:%s", ret_str(ret)); // necessary to avoid trailing whitespace
printf("\n"); printf("\n");
} }
@ -112,7 +112,7 @@ int main(int argc, char **argv)
//FIXME fully test the new seek API //FIXME fully test the new seek API
if(i&1) ret = avformat_seek_file(ic, stream_id, INT64_MIN, timestamp, timestamp, 0); if(i&1) ret = avformat_seek_file(ic, stream_id, INT64_MIN, timestamp, timestamp, 0);
else ret = avformat_seek_file(ic, stream_id, timestamp, timestamp, INT64_MAX, 0); else ret = avformat_seek_file(ic, stream_id, timestamp, timestamp, INT64_MAX, 0);
printf("ret:%s st:%2d ts:%f flags:%d\n", ret_str(ret), stream_id, timestamp*(stream_id<0 ? 1.0/AV_TIME_BASE : av_q2d(st->time_base)), i&1); printf("ret:%-10s st:%2d flags:%d ts:%9f\n", ret_str(ret), stream_id, i&1, timestamp*(stream_id<0 ? 1.0/AV_TIME_BASE : av_q2d(st->time_base)));
} }
return 0; return 0;

Loading…
Cancel
Save