summaryrefslogtreecommitdiff
path: root/libavformat/cafdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-25 16:37:42 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-25 17:23:39 +0100
commit773f2a563f7a450708be021b36dc80bcee7cae3e (patch)
treec2594c1c09ad9ccab39e63445c60991c82d2c401 /libavformat/cafdec.c
parent5ce04c54ddcfeca1bc418facf728de9bad086f92 (diff)
avformat/cafdec: use ff_get_extradata()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/cafdec.c')
-rw-r--r--libavformat/cafdec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/cafdec.c b/libavformat/cafdec.c
index e954c65683..0b5d59cdae 100644
--- a/libavformat/cafdec.c
+++ b/libavformat/cafdec.c
@@ -154,9 +154,8 @@ static int read_kuki_chunk(AVFormatContext *s, int64_t size)
avio_skip(pb, size - ALAC_NEW_KUKI);
}
} else {
- if (ff_alloc_extradata(st->codec, size))
+ if (ff_get_extradata(st->codec, pb, size) < 0)
return AVERROR(ENOMEM);
- avio_read(pb, st->codec->extradata, size);
}
return 0;