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:
2e2cab6
)
avformat/vc1test: 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:38:30 +0000
(17:38 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/vc1test.c
patch
|
blob
|
history
diff --git
a/libavformat/vc1test.c
b/libavformat/vc1test.c
index
bf1bfe0
..
e5303fa
100644
(file)
--- a/
libavformat/vc1test.c
+++ b/
libavformat/vc1test.c
@@
-61,9
+61,8
@@
static int vc1t_read_header(AVFormatContext *s)
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
st->codec->codec_id = AV_CODEC_ID_WMV3;
- if (ff_
alloc_extradata(st->codec, VC1_EXTRADATA_SIZE)
)
+ if (ff_
get_extradata(st->codec, pb, VC1_EXTRADATA_SIZE) < 0
)
return AVERROR(ENOMEM);
- avio_read(pb, st->codec->extradata, VC1_EXTRADATA_SIZE);
st->codec->height = avio_rl32(pb);
st->codec->width = avio_rl32(pb);
if(avio_rl32(pb) != 0xC)