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:
b294a4b
)
avformat/oggparseflac: check ff_alloc_extradata() return code
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 20 Oct 2013 14:55:43 +0000
(16:55 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 20 Oct 2013 14:55:43 +0000
(16:55 +0200)
Fixes CID1108573
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggparseflac.c
patch
|
blob
|
history
diff --git
a/libavformat/oggparseflac.c
b/libavformat/oggparseflac.c
index
894b438
..
f69533f
100644
(file)
--- a/
libavformat/oggparseflac.c
+++ b/
libavformat/oggparseflac.c
@@
-62,7
+62,8
@@
flac_header (AVFormatContext * s, int idx)
st->codec->codec_id = AV_CODEC_ID_FLAC;
st->need_parsing = AVSTREAM_PARSE_HEADERS;
- ff_alloc_extradata(st->codec, FLAC_STREAMINFO_SIZE);
+ if (ff_alloc_extradata(st->codec, FLAC_STREAMINFO_SIZE) < 0)
+ return AVERROR(ENOMEM);
memcpy(st->codec->extradata, streaminfo_start, st->codec->extradata_size);
avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate);