From 4b1f5e5090abed6c618c8ba380cd7d28d140f867 Mon Sep 17 00:00:00 2001 From: Gabriel Dume Date: Thu, 14 Aug 2014 16:31:25 -0400 Subject: cosmetics: Write NULL pointer inequality checks more compactly Signed-off-by: Diego Biurrun --- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/movenc.c') diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 72dcf0a725..8af3c3419f 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3369,7 +3369,7 @@ static int mov_write_header(AVFormatContext *s) /* Default mode == MP4 */ mov->mode = MODE_MP4; - if (s->oformat != NULL) { + if (s->oformat) { if (!strcmp("3gp", s->oformat->name)) mov->mode = MODE_3GP; else if (!strcmp("3g2", s->oformat->name)) mov->mode = MODE_3GP|MODE_3G2; else if (!strcmp("mov", s->oformat->name)) mov->mode = MODE_MOV; -- cgit v1.2.3