avformat/nuv: use ff_get_extradata()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-12-25 16:37:42 +01:00
parent 0cedc6c066
commit bb6101d4de
1 changed files with 1 additions and 2 deletions

View File

@ -86,9 +86,8 @@ static int get_codec_data(AVIOContext *pb, AVStream *vst,
av_freep(&vst->codec->extradata);
vst->codec->extradata_size = 0;
}
if (ff_alloc_extradata(vst->codec, size))
if (ff_get_extradata(vst->codec, pb, size) < 0)
return AVERROR(ENOMEM);
avio_read(pb, vst->codec->extradata, size);
size = 0;
if (!myth)
return 0;