Commit 57123dc6 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'a4ed995c'

* commit 'a4ed995c':
  txd: do not set the codec timebase.
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 57fb5709 a4ed995c
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "avformat.h" #include "avformat.h"
#include "internal.h"
#define TXD_FILE 0x16 #define TXD_FILE 0x16
#define TXD_INFO 0x01 #define TXD_INFO 0x01
...@@ -45,8 +46,8 @@ static int txd_read_header(AVFormatContext *s) { ...@@ -45,8 +46,8 @@ static int txd_read_header(AVFormatContext *s) {
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
st->codec->codec_type = AVMEDIA_TYPE_VIDEO; st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
st->codec->codec_id = AV_CODEC_ID_TXD; st->codec->codec_id = AV_CODEC_ID_TXD;
st->codec->time_base.den = 5; avpriv_set_pts_info(st, 64, 1, 5);
st->codec->time_base.num = 1; st->avg_frame_rate = av_inv_q(st->time_base);
/* the parameters will be extracted from the compressed bitstream */ /* the parameters will be extracted from the compressed bitstream */
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment