Commit 6fb29535 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/vc1test: use ff_get_extradata()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2e2cab6e
...@@ -61,9 +61,8 @@ static int vc1t_read_header(AVFormatContext *s) ...@@ -61,9 +61,8 @@ static int vc1t_read_header(AVFormatContext *s)
st->codec->codec_type = AVMEDIA_TYPE_VIDEO; st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
st->codec->codec_id = AV_CODEC_ID_WMV3; st->codec->codec_id = AV_CODEC_ID_WMV3;
if (ff_alloc_extradata(st->codec, VC1_EXTRADATA_SIZE)) if (ff_get_extradata(st->codec, pb, VC1_EXTRADATA_SIZE) < 0)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
avio_read(pb, st->codec->extradata, VC1_EXTRADATA_SIZE);
st->codec->height = avio_rl32(pb); st->codec->height = avio_rl32(pb);
st->codec->width = avio_rl32(pb); st->codec->width = avio_rl32(pb);
if(avio_rl32(pb) != 0xC) if(avio_rl32(pb) != 0xC)
......
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