From a6068c8700d16e31a2c036adb8516c66428ae267 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 21 May 2023 20:58:37 +0200 Subject: [PATCH] avformat/fits*: format does not store timestamps --- libavformat/fitsdec.c | 1 + libavformat/fitsenc.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libavformat/fitsdec.c b/libavformat/fitsdec.c index 516579669fbbc..e0f502e4e335e 100644 --- a/libavformat/fitsdec.c +++ b/libavformat/fitsdec.c @@ -228,4 +228,5 @@ const AVInputFormat ff_fits_demuxer = { .read_header = fits_read_header, .read_packet = fits_read_packet, .priv_class = &fits_demuxer_class, + .flags = AVFMT_NOTIMESTAMPS, }; diff --git a/libavformat/fitsenc.c b/libavformat/fitsenc.c index 90bb71fd17b70..14a4572f70a48 100644 --- a/libavformat/fitsenc.c +++ b/libavformat/fitsenc.c @@ -199,6 +199,7 @@ const FFOutputFormat ff_fits_muxer = { .p.audio_codec = AV_CODEC_ID_NONE, .p.video_codec = AV_CODEC_ID_FITS, .priv_data_size = sizeof(FITSContext), - .write_header = fits_write_header, - .write_packet = fits_write_packet, + .write_header = fits_write_header, + .write_packet = fits_write_packet, + .p.flags = AVFMT_NOTIMESTAMPS, };