[FFmpeg-devel] [PATCH v2 4/5] fftools/ffmpeg: Ignore PTS checking for arib_superimpose

zheng qian xqq at xqq.im
Sun Jun 13 05:34:20 EEST 2021


arib_superimpose codec doesn't has PTS (AV_NOPTS_VALUE)

Signed-off-by: zheng qian <xqq at xqq.im>
---
 fftools/ffmpeg.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index e97d879cb3..d60ab49533 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -824,7 +824,8 @@ static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int u
         if ((st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO || st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO || st->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE) &&
             pkt->dts != AV_NOPTS_VALUE &&
             !(st->codecpar->codec_id == AV_CODEC_ID_VP9 && ost->stream_copy) &&
-            ost->last_mux_dts != AV_NOPTS_VALUE) {
+            ost->last_mux_dts != AV_NOPTS_VALUE &&
+            st->codecpar->codec_id != AV_CODEC_ID_ARIB_SUPERIMPOSE) {
             int64_t max = ost->last_mux_dts + !(s->oformat->flags & AVFMT_TS_NONSTRICT);
             if (pkt->dts < max) {
                 int loglevel = max - pkt->dts > 2 || st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO ? AV_LOG_WARNING : AV_LOG_DEBUG;
-- 
2.29.2



More information about the ffmpeg-devel mailing list