diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-25 19:37:42 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-25 20:38:29 +0400 |
commit | 0cedc6c066decb646eb023f02c62931c6056605e (patch) | |
tree | bb45df31fff5ac7a583330da40357c5cca19241d /libavformat/nutdec.c | |
parent | 6f7daae04315e90287f888b6cc7b36b13741251e (diff) |
avformat/nutdec: use ff_get_extradata()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r-- | libavformat/nutdec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 4ee5f4d429..ba9ff0294b 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -418,9 +418,8 @@ static int decode_stream_header(NUTContext *nut) GET_V(st->codec->extradata_size, tmp < (1 << 30)); if (st->codec->extradata_size) { - if (ff_alloc_extradata(st->codec, st->codec->extradata_size)) + if (ff_get_extradata(st->codec, bc, st->codec->extradata_size) < 0) return AVERROR(ENOMEM); - avio_read(bc, st->codec->extradata, st->codec->extradata_size); } if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO) { |