diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-11-17 22:31:02 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-02-07 11:46:55 +0100 |
commit | 46f5e6c0dd84b59e973ec2e4128fb27e612afb6e (patch) | |
tree | 2f5bf0ad2e5c093ba9fff7943539304b31a81f36 | |
parent | d0993ee3f0f49c948468cfac0ca5b2896bfd4b71 (diff) |
lavf/4xm: set average framerate and ts_flags
-rw-r--r-- | libavformat/4xm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/4xm.c b/libavformat/4xm.c index fdf6e4b84b..76ea8d14a6 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@ -108,6 +108,9 @@ static int parse_vtrk(AVFormatContext *s, return AVERROR(ENOMEM); avpriv_set_pts_info(st, 60, fourxm->fps.den, fourxm->fps.num); + st->avg_frame_rate = fourxm->fps; + + st->ts_flags = AVFORMAT_TS_FLAG_RATE | AVFORMAT_TS_FLAG_PTS; fourxm->video_stream_index = st->index; @@ -186,6 +189,8 @@ static int parse_strk(AVFormatContext *s, st->id = track; avpriv_set_pts_info(st, 60, 1, fourxm->tracks[track].sample_rate); + st->ts_flags = AVFORMAT_TS_FLAG_PTS; + fourxm->tracks[track].stream_index = st->index; st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; |