aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-02-24 10:08:07 +0200
committerLuca Barbato <lu_zero@gentoo.org>2011-03-02 11:29:38 +0100
commit5e33e7bdac70a4b70e31f4ae6f0344060346d0b8 (patch)
tree396deb93e5677e2b5fd9fe6789cf7158127f7508
parent863c471638fa667e6e5c5df059b67af263e1cd40 (diff)
downloadffmpeg-5e33e7bdac70a4b70e31f4ae6f0344060346d0b8.tar.gz
ffmpeg: Use av_pkt_dump_log2
This makes dumped packet timestamps proper for streams with timebases other than AV_TIME_BASE. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 4a737b4945..e3dda9de1c 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]);
}
/* the following test is needed in case new streams appear
dynamically in stream : we ignore them */