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