From d2afbd9a56e4e863bad01923006dd9b77f747035 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 2 Feb 2012 14:20:43 +0100 Subject: frame{crc/md5}: set the stream timebase from codec timebase. Right now those muxers use the default timebase in all cases(1/90000). This patch avoid unnecessary rescaling and makes the printed timestamps more readable. Also, extend the printed information to include the timebases and packet pts/duration and align the columns. Obviously changes the results of all fate tests which use those two muxers. --- libavformat/internal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavformat/internal.h') diff --git a/libavformat/internal.h b/libavformat/internal.h index 559e710014..322dff94af 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -307,4 +307,10 @@ int ff_add_param_change(AVPacket *pkt, int32_t channels, uint64_t channel_layout, int32_t sample_rate, int32_t width, int32_t height); +/** + * Set the timebase for each stream from the corresponding codec timebase and + * print it. + */ +int ff_framehash_write_header(AVFormatContext *s); + #endif /* AVFORMAT_INTERNAL_H */ -- cgit v1.2.3