mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/nuv: use ff_get_extradata()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0cedc6c066
commit
bb6101d4de
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue