diff options
-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; |