diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-04 21:58:35 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-05 00:28:21 +0100 |
commit | a147c1b2b125c26cd2c5105a7f274a597de37731 (patch) | |
tree | ba6d2a5e08c4e01f253969faf5c356fdacc83b78 | |
parent | 1ba0d9b5d110bc785acbffea54c4e33993d26425 (diff) | |
download | ffmpeg-a147c1b2b125c26cd2c5105a7f274a597de37731.tar.gz |
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>
-rw-r--r-- | libavformat/oggenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c index 1a0e4e3222..2ff6704698 100644 --- a/libavformat/oggenc.c +++ b/libavformat/oggenc.c @@ -496,7 +496,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); } |