[FFmpeg-devel] [PATCH 2/2] ffmpeg: Use av_pkt_dump_log2
Martin Storsjö
martin
Wed Feb 23 22:21:43 CET 2011
This makes dumped packet timestamps proper for streams with
timebases other than AV_TIME_BASE.
---
ffmpeg.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 4a737b4..25cf62b 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2578,7 +2578,8 @@ static int transcode(AVFormatContext **output_files,
memset(no_packet, 0, sizeof(no_packet));
if (do_pkt_dump) {
- av_pkt_dump_log(NULL, AV_LOG_DEBUG, &pkt, do_hex_dump);
+ av_pkt_dump_log2(NULL, AV_LOG_DEBUG, &pkt, do_hex_dump,
+ is->streams[pkt.stream_index]->time_base);
}
/* the following test is needed in case new streams appear
dynamically in stream : we ignore them */
--
1.7.3.1
More information about the ffmpeg-devel
mailing list