mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avformat/matroskaenc: Improve log message
Since4e3bdf729a
there is no reason any more to treat the seekable and non-seekable cases separate with regards to the log message for a new cluster. This effectively revertsd41aeea8a6
. Also improved the log message: "pts 80dts 0" -> "pts 80, dts 0". Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
30d07c74db
commit
924424d867
@ -2265,15 +2265,10 @@ static void mkv_start_new_cluster(AVFormatContext *s, AVPacket *pkt)
|
||||
|
||||
end_ebml_master_crc32(s->pb, &mkv->dyn_bc, mkv, mkv->cluster);
|
||||
mkv->cluster_pos = -1;
|
||||
if (s->pb->seekable & AVIO_SEEKABLE_NORMAL)
|
||||
av_log(s, AV_LOG_DEBUG,
|
||||
"Starting new cluster at offset %" PRIu64 " bytes, "
|
||||
"pts %" PRIu64 "dts %" PRIu64 "\n",
|
||||
"pts %" PRIu64 ", dts %" PRIu64 "\n",
|
||||
avio_tell(s->pb), pkt->pts, pkt->dts);
|
||||
else
|
||||
av_log(s, AV_LOG_DEBUG, "Starting new cluster, "
|
||||
"pts %" PRIu64 "dts %" PRIu64 "\n",
|
||||
pkt->pts, pkt->dts);
|
||||
avio_flush(s->pb);
|
||||
}
|
||||
|
||||
@ -2551,12 +2546,9 @@ static int mkv_write_flush_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
if (mkv->cluster_pos != -1) {
|
||||
end_ebml_master_crc32(s->pb, &mkv->dyn_bc, mkv, mkv->cluster);
|
||||
mkv->cluster_pos = -1;
|
||||
if (s->pb->seekable & AVIO_SEEKABLE_NORMAL)
|
||||
av_log(s, AV_LOG_DEBUG,
|
||||
"Flushing cluster at offset %" PRIu64 " bytes\n",
|
||||
avio_tell(s->pb));
|
||||
else
|
||||
av_log(s, AV_LOG_DEBUG, "Flushing cluster\n");
|
||||
avio_flush(s->pb);
|
||||
}
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user