diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-25 16:37:42 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-25 17:38:29 +0100 |
commit | 0b9ca70243c43cb95b5d596a827a2b748061dd2d (patch) | |
tree | 4d76760f33fc9a90f10eaf0aa93de9db3f42c49b /libavformat/riffdec.c | |
parent | bb6101d4de74525903e3acd78c52d5043d8046a9 (diff) | |
download | ffmpeg-0b9ca70243c43cb95b5d596a827a2b748061dd2d.tar.gz |
avformat/riffdec: use ff_get_extradata()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/riffdec.c')
-rw-r--r-- | libavformat/riffdec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/riffdec.c b/libavformat/riffdec.c index de8eb5f588..559ca47df8 100644 --- a/libavformat/riffdec.c +++ b/libavformat/riffdec.c @@ -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; } |