[FFmpeg-devel] [PATCH] avformat/wtvenc: do not output negative 'third timestamp' field
Peter Ross
pross at xvid.org
Tue Dec 24 11:14:56 EET 2024
Fixes ticket #3659.
---
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);
--
2.45.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241224/b81913d7/attachment.sig>
More information about the ffmpeg-devel
mailing list