diff options
Diffstat (limited to 'libavformat/vc1test.c')
-rw-r--r-- | libavformat/vc1test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index 3afe398d8b..1414426d02 100644 --- a/libavformat/vc1test.c +++ b/libavformat/vc1test.c @@ -58,13 +58,13 @@ static int vc1t_read_header(AVFormatContext *s) if (!st) return AVERROR(ENOMEM); - st->codec->codec_type = AVMEDIA_TYPE_VIDEO; - st->codec->codec_id = AV_CODEC_ID_WMV3; + st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; + st->codecpar->codec_id = AV_CODEC_ID_WMV3; - if (ff_get_extradata(st->codec, pb, VC1_EXTRADATA_SIZE) < 0) + if (ff_get_extradata(st->codecpar, pb, VC1_EXTRADATA_SIZE) < 0) return AVERROR(ENOMEM); - st->codec->height = avio_rl32(pb); - st->codec->width = avio_rl32(pb); + st->codecpar->height = avio_rl32(pb); + st->codecpar->width = avio_rl32(pb); if(avio_rl32(pb) != 0xC) return AVERROR_INVALIDDATA; avio_skip(pb, 8); |