diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-19 12:40:00 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-19 12:40:00 +0000 |
commit | 933018e249ab77696ebfff54d8de527ad9b57604 (patch) | |
tree | ef826f1eb30d4279551f9c82ba02d154c85ca73b /tests/seek_test.c | |
parent | 1953898162849b95b18622f5804b615dc3c55bb9 (diff) | |
download | ffmpeg-933018e249ab77696ebfff54d8de527ad9b57604.tar.gz |
Align the seek regression test output for better readability.
Originally committed as revision 20309 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/seek_test.c')
-rw-r--r-- | tests/seek_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/seek_test.c b/tests/seek_test.c index 854e69803b..40a8f2c4f2 100644 --- a/tests/seek_test.c +++ b/tests/seek_test.c @@ -93,11 +93,11 @@ int main(int argc, char **argv) memset(&pkt, 0, sizeof(pkt)); if(ret>=0){ ret= av_read_frame(ic, &pkt); - printf("ret:%s", ret_str(ret)); if(ret>=0){ 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"); } @@ -112,7 +112,7 @@ int main(int argc, char **argv) //FIXME fully test the new seek API 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); - 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; |