X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=tests%2Fapi%2Fapi-h264-test.c;h=60a3ae5ef447053feca7020d18c76055658a5472;hb=e1b5620b62ef0e3d04a6c4f3d837328076ed2a9b;hp=66669fa0c353c59f8f0d68e6fbc4555427d6c695;hpb=8e789d244cc946bc350672eeb02453918b21a09f;p=ffmpeg diff --git a/tests/api/api-h264-test.c b/tests/api/api-h264-test.c index 66669fa0c35..60a3ae5ef44 100644 --- a/tests/api/api-h264-test.c +++ b/tests/api/api-h264-test.c @@ -28,6 +28,7 @@ #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libavutil/imgutils.h" +#include "libavutil/timestamp.h" static int video_decode_example(const char *input_filename) { @@ -131,9 +132,9 @@ static int video_decode_example(const char *input_filename) av_log(NULL, AV_LOG_ERROR, "Can't copy image to buffer\n"); return number_of_written_bytes; } - printf("%d, %10"PRId64", %10"PRId64", %8"PRId64", %8d, 0x%08lx\n", video_stream, - fr->pts, fr->pkt_dts, fr->pkt_duration, - number_of_written_bytes, av_adler32_update(0, (const uint8_t*)byte_buffer, number_of_written_bytes)); + printf("%d, %s, %s, %8"PRId64", %8d, 0x%08lx\n", video_stream, + av_ts2str(fr->pts), av_ts2str(fr->pkt_dts), fr->pkt_duration, + number_of_written_bytes, av_adler32_update(0, (const uint8_t*)byte_buffer, number_of_written_bytes)); } av_packet_unref(&pkt); av_init_packet(&pkt);