diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-05-21 20:55:32 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-05-21 20:59:06 +0200 |
commit | 02823703f4753e10e7de14124d003d3fc23d7f39 (patch) | |
tree | b37e200821e326a031e8c191109e3d8999f33298 /libavformat/fitsdec.c | |
parent | d912ff19c501d1a02eb8832b863790960981ccae (diff) | |
download | ffmpeg-02823703f4753e10e7de14124d003d3fc23d7f39.tar.gz |
avformat/fitsdec: stop creating pts, instead set packet duration
Diffstat (limited to 'libavformat/fitsdec.c')
-rw-r--r-- | libavformat/fitsdec.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavformat/fitsdec.c b/libavformat/fitsdec.c index 8618b9aab0..516579669f 100644 --- a/libavformat/fitsdec.c +++ b/libavformat/fitsdec.c @@ -37,7 +37,6 @@ typedef struct FITSContext { const AVClass *class; AVRational framerate; int first_image; - int64_t pts; } FITSContext; static int fits_probe(const AVProbeData *p) @@ -61,7 +60,6 @@ static int fits_read_header(AVFormatContext *s) st->codecpar->codec_id = AV_CODEC_ID_FITS; avpriv_set_pts_info(st, 64, fits->framerate.den, fits->framerate.num); - fits->pts = 0; fits->first_image = 1; return 0; } @@ -196,13 +194,11 @@ static int fits_read_packet(AVFormatContext *s, AVPacket *pkt) pkt->size = avbuf.len - 80; av_freep(&buf); ret = avio_read(s->pb, pkt->data + pkt->size, size); - if (ret < 0) { + if (ret < 0) return ret; - } pkt->size += ret; - pkt->pts = fits->pts; - fits->pts++; + pkt->duration = 1; return 0; |