mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-19 09:02:26 +02:00
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)
This commit is contained in:
parent
08ad81cbff
commit
d34ffd3ce9
3
ffmpeg.c
3
ffmpeg.c
@ -2594,7 +2594,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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user