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:23:25 +0400 |
commit | 5ce04c54ddcfeca1bc418facf728de9bad086f92 (patch) | |
tree | 7e98a26dc0b3b4799a2e6efc403bc171d566f79f /libavformat/bink.c | |
parent | e93bc3efbf756b5ffc402c64df38852829f10382 (diff) |
avformat/bink: use ff_get_extradata()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/bink.c')
-rw-r--r-- | libavformat/bink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/bink.c b/libavformat/bink.c index 6db73cce3a..95b615a33a 100644 --- a/libavformat/bink.c +++ b/libavformat/bink.c @@ -116,9 +116,8 @@ static int read_header(AVFormatContext *s) vst->codec->codec_type = AVMEDIA_TYPE_VIDEO; vst->codec->codec_id = AV_CODEC_ID_BINKVIDEO; - if (ff_alloc_extradata(vst->codec, 4)) + if (ff_get_extradata(vst->codec, pb, 4) < 0) return AVERROR(ENOMEM); - avio_read(pb, vst->codec->extradata, 4); bink->num_audio_tracks = avio_rl32(pb); |