diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-04-13 12:43:45 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-04-22 09:44:16 +0400 |
commit | a4ed995cabf220029f1d0e185a6fb45eed7b4091 (patch) | |
tree | a2d176f40c6dd7514a7b9a4e4fa650a509968d46 /libavformat/txd.c | |
parent | 1c7b71a5bdb88ebb69734100405bbb5441b871e8 (diff) |
txd: do not set the codec timebase.
It is not supposed to be changed from outside of lavc.
Set the stream timebase and average framerate instead.
Diffstat (limited to 'libavformat/txd.c')
-rw-r--r-- | libavformat/txd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/txd.c b/libavformat/txd.c index 5897881b9b..e6522c3a73 100644 --- a/libavformat/txd.c +++ b/libavformat/txd.c @@ -21,6 +21,7 @@ #include "libavutil/intreadwrite.h" #include "avformat.h" +#include "internal.h" #define TXD_FILE 0x16 #define TXD_INFO 0x01 @@ -45,8 +46,8 @@ static int txd_read_header(AVFormatContext *s) { return AVERROR(ENOMEM); st->codec->codec_type = AVMEDIA_TYPE_VIDEO; st->codec->codec_id = AV_CODEC_ID_TXD; - st->codec->time_base.den = 5; - st->codec->time_base.num = 1; + avpriv_set_pts_info(st, 64, 1, 5); + st->avg_frame_rate = av_inv_q(st->time_base); /* the parameters will be extracted from the compressed bitstream */ return 0; } |