mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
avformat/riffdec: use ff_get_extradata()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
bb6101d4de
commit
0b9ca70243
@ -117,9 +117,8 @@ int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size)
|
||||
}
|
||||
if (cbSize > 0) {
|
||||
av_free(codec->extradata);
|
||||
if (ff_alloc_extradata(codec, cbSize))
|
||||
if (ff_get_extradata(codec, pb, cbSize) < 0)
|
||||
return AVERROR(ENOMEM);
|
||||
avio_read(pb, codec->extradata, codec->extradata_size);
|
||||
size -= cbSize;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user