Merge remote-tracking branch 'qatar/master'
* qatar/master: oggparsetheora: check av_mallocz result Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
7fd7a10efd
@ -50,6 +50,8 @@ static int theora_header(AVFormatContext *s, int idx)
|
|||||||
|
|
||||||
if (!thp) {
|
if (!thp) {
|
||||||
thp = av_mallocz(sizeof(*thp));
|
thp = av_mallocz(sizeof(*thp));
|
||||||
|
if (!thp)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
os->private = thp;
|
os->private = thp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user