Commit 5e33e7bd authored by Martin Storsjö's avatar Martin Storsjö Committed by Luca Barbato
Browse files

ffmpeg: Use av_pkt_dump_log2



This makes dumped packet timestamps proper for streams with
timebases other than AV_TIME_BASE.
Signed-off-by: default avatarLuca Barbato <lu_zero@gentoo.org>
parent 863c4716
...@@ -2578,7 +2578,8 @@ static int transcode(AVFormatContext **output_files, ...@@ -2578,7 +2578,8 @@ static int transcode(AVFormatContext **output_files,
memset(no_packet, 0, sizeof(no_packet)); memset(no_packet, 0, sizeof(no_packet));
if (do_pkt_dump) { 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 /* the following test is needed in case new streams appear
dynamically in stream : we ignore them */ dynamically in stream : we ignore them */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment