[FFmpeg-cvslog] avformat/wtvenc: do not output negative 'third timestamp' field
Peter Ross
git at videolan.org
Sun Jan 12 02:13:05 EET 2025
ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Tue Dec 24 19:34:12 2024 +1100| [ba22d6a24f843829e9188be0e5ea96f3a142769e] | committer: Peter Ross
avformat/wtvenc: do not output negative 'third timestamp' field
Fixes ticket #3659.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ba22d6a24f843829e9188be0e5ea96f3a142769e
---
libavformat/wtvenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c
index 02fe84573f..0c0ef05bbe 100644
--- a/libavformat/wtvenc.c
+++ b/libavformat/wtvenc.c
@@ -450,7 +450,7 @@ static void write_timestamp(AVFormatContext *s, AVPacket *pkt)
write_pad(pb, 8);
avio_wl64(pb, pkt->pts == AV_NOPTS_VALUE ? -1 : pkt->pts);
avio_wl64(pb, pkt->pts == AV_NOPTS_VALUE ? -1 : pkt->pts);
- avio_wl64(pb, pkt->pts == AV_NOPTS_VALUE ? -1 : pkt->pts);
+ avio_wl64(pb, pkt->pts == AV_NOPTS_VALUE ? 0 : pkt->pts);
avio_wl64(pb, 0);
avio_wl64(pb, par->codec_type == AVMEDIA_TYPE_VIDEO && (pkt->flags & AV_PKT_FLAG_KEY) ? 1 : 0);
avio_wl64(pb, 0);
More information about the ffmpeg-cvslog
mailing list