Commit b6a8c524 authored by Stefano Sabatini's avatar Stefano Sabatini

lavf/segment: show incoming packet duration in debug message

parent 5acad500
...@@ -707,8 +707,9 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -707,8 +707,9 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt)
} }
} }
av_dlog(s, "packet stream:%d pts:%s pts_time:%s is_key:%d frame:%d\n", av_dlog(s, "packet stream:%d pts:%s pts_time:%s duration_time:%s is_key:%d frame:%d\n",
pkt->stream_index, av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &st->time_base), pkt->stream_index, av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &st->time_base),
av_ts2timestr(pkt->duration, &st->time_base),
pkt->flags & AV_PKT_FLAG_KEY, pkt->flags & AV_PKT_FLAG_KEY,
pkt->stream_index == seg->reference_stream_index ? seg->frame_count : -1); pkt->stream_index == seg->reference_stream_index ? seg->frame_count : -1);
......
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