aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_demux.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-03-21 17:12:25 +0100
committerAnton Khirnov <anton@khirnov.net>2022-08-08 16:20:58 +0200
commit9c16310fe509bd81b355207160ce5afc5f645855 (patch)
treeb743f281b7c69d54af7237c90718bed558573ac0 /fftools/ffmpeg_demux.c
parentb1f24afe7e7e56645d633b0c55b1846351ef4ac9 (diff)
downloadffmpeg-9c16310fe509bd81b355207160ce5afc5f645855.tar.gz
fftools/ffmpeg: handle dumping input packets in input_thread()
This is a more appropriate place for this.
Diffstat (limited to 'fftools/ffmpeg_demux.c')
-rw-r--r--fftools/ffmpeg_demux.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c
index 2629af5950..f9bd6d47fe 100644
--- a/fftools/ffmpeg_demux.c
+++ b/fftools/ffmpeg_demux.c
@@ -45,6 +45,12 @@ static void *input_thread(void *arg)
av_thread_message_queue_set_err_recv(f->in_thread_queue, ret);
break;
}
+
+ if (do_pkt_dump) {
+ av_pkt_dump_log2(NULL, AV_LOG_INFO, pkt, do_hex_dump,
+ f->ctx->streams[pkt->stream_index]);
+ }
+
queue_pkt = av_packet_alloc();
if (!queue_pkt) {
av_packet_unref(pkt);