aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-24 13:15:37 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-10-29 16:54:37 +0000
commitb3d11437ca55d81eeb10c923343ad69b73895fa8 (patch)
tree02ff069e4775dfba17a1afc8cba60c15ba6951f2
parenta9179b5bd6f143b4a7ff48bb0d00c8f0a7cafb4b (diff)
downloadffmpeg-b3d11437ca55d81eeb10c923343ad69b73895fa8.tar.gz
oggenc: remove unneeded null check
The code would have segfaulted before if oggstream were NULL. CC: libav-stable@libav.org Bug-Id: CID 732218
-rw-r--r--libavformat/oggenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index 1277a8b123..8f08da189f 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -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);
}