diff options
author | Gabriel Dume <gabriel.ddx84@gmail.com> | 2014-08-14 16:31:25 -0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-08-15 05:34:13 -0700 |
commit | 4b1f5e5090abed6c618c8ba380cd7d28d140f867 (patch) | |
tree | d5281695ec758c21ed6c0df8e3c03433bca28d18 /libavformat/format.c | |
parent | f929ab0569ff31ed5a59b0b0adb7ce09df3fca39 (diff) | |
download | ffmpeg-4b1f5e5090abed6c618c8ba380cd7d28d140f867.tar.gz |
cosmetics: Write NULL pointer inequality checks more compactly
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavformat/format.c')
-rw-r--r-- | libavformat/format.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/format.c b/libavformat/format.c index bdc90446fa..c5a57d5451 100644 --- a/libavformat/format.c +++ b/libavformat/format.c @@ -56,7 +56,7 @@ void av_register_input_format(AVInputFormat *format) { AVInputFormat **p = &first_iformat; - while (*p != NULL) + while (*p) p = &(*p)->next; *p = format; @@ -67,7 +67,7 @@ void av_register_output_format(AVOutputFormat *format) { AVOutputFormat **p = &first_oformat; - while (*p != NULL) + while (*p) p = &(*p)->next; *p = format; |