Skip to content
Snippets Groups Projects
Commit 4e2899dd authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

lavf/segment: add more information in log message in seg_write_packet()

parent 597282ef
No related branches found
No related tags found
No related merge requests found
...@@ -208,8 +208,8 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -208,8 +208,8 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt)
end_pts, AV_TIME_BASE_Q) >= 0 && end_pts, AV_TIME_BASE_Q) >= 0 &&
pkt->flags & AV_PKT_FLAG_KEY) { pkt->flags & AV_PKT_FLAG_KEY) {
av_log(s, AV_LOG_DEBUG, "Next segment starts at %d %"PRId64"\n", av_log(s, AV_LOG_DEBUG, "Next segment starts with packet stream:%d pts:%"PRId64" pts_time:%f\n",
pkt->stream_index, pkt->pts); pkt->stream_index, pkt->pts, pkt->pts * av_q2d(st->time_base));
if ((ret = segment_end(s)) < 0 || (ret = segment_start(s)) < 0) if ((ret = segment_end(s)) < 0 || (ret = segment_start(s)) < 0)
goto fail; goto fail;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment