oggenc: remove unneeded null check.
The code would have segfaulted before if it where null Fixes CID732218 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1ba0d9b5d1
commit
a147c1b2b1
@ -496,7 +496,7 @@ static int ogg_write_header(AVFormatContext *s)
|
|||||||
AVStream *st = s->streams[j];
|
AVStream *st = s->streams[j];
|
||||||
OGGStreamContext *oggstream = st->priv_data;
|
OGGStreamContext *oggstream = st->priv_data;
|
||||||
for (i = 1; i < 3; i++) {
|
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],
|
ogg_buffer_data(s, st, oggstream->header[i],
|
||||||
oggstream->header_len[i], 0, 1);
|
oggstream->header_len[i], 0, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user