This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
ogg: check memory allocations
Bug-Id: CID 1257795 CC:
libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n2.6
Federico Tomassetti
Luca Barbato
11 years ago
parent
53367b34e1
commit
b4cda0a999
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
libavformat/oggenc.c
+ 2
- 0
libavformat/oggenc.c
View File
@@ -444,6 +444,8 @@ static int ogg_write_header(AVFormatContext *s)
return -1;
}
oggstream = av_mallocz(sizeof(*oggstream));
if (!oggstream)
return AVERROR(ENOMEM);
oggstream->page.stream_index = i;
if (!(s->flags & AVFMT_FLAG_BITEXACT))
Write
Preview
Loading…
Cancel
Save