[FFmpeg-cvslog] avformat/vc1test: use ff_get_extradata()
Michael Niedermayer
git at videolan.org
Wed Dec 25 17:48:56 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 25 16:37:42 2013 +0100| [6fb29535fd540a043aec5a20146ee8df7648b923] | committer: Michael Niedermayer
avformat/vc1test: use ff_get_extradata()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6fb29535fd540a043aec5a20146ee8df7648b923
---
libavformat/vc1test.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c
index bf1bfe0..e5303fa 100644
--- 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)
More information about the ffmpeg-cvslog
mailing list