OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e93bc3e
)
avformat/bink: use ff_get_extradata()
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 25 Dec 2013 15:37:42 +0000
(16:37 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 25 Dec 2013 16:23:25 +0000
(17:23 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/bink.c
patch
|
blob
|
history
diff --git
a/libavformat/bink.c
b/libavformat/bink.c
index
6db73cc
..
95b615a
100644
(file)
--- 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);