mirror of https://git.ffmpeg.org/ffmpeg.git
fftools/ffmpeg: handle dumping input packets in input_thread()
This is a more appropriate place for this.
This commit is contained in:
parent
b1f24afe7e
commit
9c16310fe5
|
@ -3831,10 +3831,6 @@ static int process_input(int file_index)
|
||||||
|
|
||||||
reset_eagain();
|
reset_eagain();
|
||||||
|
|
||||||
if (do_pkt_dump) {
|
|
||||||
av_pkt_dump_log2(NULL, AV_LOG_INFO, 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 */
|
||||||
if (pkt->stream_index >= ifile->nb_streams) {
|
if (pkt->stream_index >= ifile->nb_streams) {
|
||||||
|
|
|
@ -45,6 +45,12 @@ static void *input_thread(void *arg)
|
||||||
av_thread_message_queue_set_err_recv(f->in_thread_queue, ret);
|
av_thread_message_queue_set_err_recv(f->in_thread_queue, ret);
|
||||||
break;
|
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();
|
queue_pkt = av_packet_alloc();
|
||||||
if (!queue_pkt) {
|
if (!queue_pkt) {
|
||||||
av_packet_unref(pkt);
|
av_packet_unref(pkt);
|
||||||
|
|
Loading…
Reference in New Issue