mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
oggenc: remove unneeded null check
The code would have segfaulted before if oggstream were NULL. CC: libav-stable@libav.org Bug-Id: CID 732218
This commit is contained in:
parent
a9179b5bd6
commit
b3d11437ca
@ -530,7 +530,7 @@ static int ogg_write_header(AVFormatContext *s)
|
||||
AVStream *st = s->streams[j];
|
||||
OGGStreamContext *oggstream = st->priv_data;
|
||||
for (i = 1; i < 3; i++) {
|
||||
if (oggstream && oggstream->header_len[i])
|
||||
if (oggstream->header_len[i])
|
||||
ogg_buffer_data(s, st, oggstream->header[i],
|
||||
oggstream->header_len[i], 0, 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user