summaryrefslogtreecommitdiff
path: root/libavformat/txd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/txd.c')
-rw-r--r--libavformat/txd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/txd.c b/libavformat/txd.c
index e6522c3a73..809ec3302d 100644
--- a/libavformat/txd.c
+++ b/libavformat/txd.c
@@ -44,8 +44,8 @@ static int txd_read_header(AVFormatContext *s) {
st = avformat_new_stream(s, NULL);
if (!st)
return AVERROR(ENOMEM);
- st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
- st->codec->codec_id = AV_CODEC_ID_TXD;
+ st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
+ st->codecpar->codec_id = AV_CODEC_ID_TXD;
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 */