summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-02-24 10:08:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-03-03 14:15:11 +0100
commitd34ffd3ce9607bd342f69ef8eab829f90c8923ae (patch)
tree4ec0082a7b9b8d7752c067cc77d0d592b6852908 /ffmpeg.c
parent08ad81cbffd6c2a433fae891d42d6cf332faa7e3 (diff)
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> (cherry picked from commit 5e33e7bdac70a4b70e31f4ae6f0344060346d0b8)
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 15ab6b38e4..a042b9870a 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2594,7 +2594,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 */