diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-08-24 10:27:09 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-05-02 10:57:21 +0200 |
commit | c7a852b638b88f129790af31fc47c870c329eaaa (patch) | |
tree | 7792085c28b5df4392859d082518dadc9f58ae38 /libavformat/dv.h | |
parent | 561746591660b456e092324f03d393d6dd9147b1 (diff) | |
download | ffmpeg-c7a852b638b88f129790af31fc47c870c329eaaa.tar.gz |
lavf/dv: do not set video timebase more than once
Current code will call avpriv_set_pts_info() for each video frame,
possibly setting a different timebase if the stream framerate changes.
This violates API conventions, as the timebase is supposed to stay
constant after stream creation.
Change the demuxer to set a single timebase that is fine enough to
handle all supported DV framerates.
The seek tests change slightly because the new timebase is more
granular.
Diffstat (limited to 'libavformat/dv.h')
-rw-r--r-- | libavformat/dv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dv.h b/libavformat/dv.h index efced6ccf0..d21ea19e02 100644 --- a/libavformat/dv.h +++ b/libavformat/dv.h @@ -34,6 +34,6 @@ typedef struct DVDemuxContext DVDemuxContext; DVDemuxContext* avpriv_dv_init_demux(AVFormatContext* s); int avpriv_dv_get_packet(DVDemuxContext*, AVPacket *); int avpriv_dv_produce_packet(DVDemuxContext*, AVPacket*, uint8_t*, int, int64_t); -void ff_dv_offset_reset(DVDemuxContext *c, int64_t frame_offset); +void ff_dv_ts_reset(DVDemuxContext *c, int64_t ts_video); #endif /* AVFORMAT_DV_H */ |