diff options
Diffstat (limited to 'libavformat/ncdec.c')
-rw-r--r-- | libavformat/ncdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/ncdec.c b/libavformat/ncdec.c index ee2aee3664..d726a2e42b 100644 --- a/libavformat/ncdec.c +++ b/libavformat/ncdec.c @@ -51,8 +51,8 @@ static int nc_read_header(AVFormatContext *s) if (!st) return AVERROR(ENOMEM); - st->codec->codec_type = AVMEDIA_TYPE_VIDEO; - st->codec->codec_id = AV_CODEC_ID_MPEG4; + st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; + st->codecpar->codec_id = AV_CODEC_ID_MPEG4; st->need_parsing = AVSTREAM_PARSE_FULL; avpriv_set_pts_info(st, 64, 1, 100); |