summaryrefslogtreecommitdiff
path: root/libavformat/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/format.c')
-rw-r--r--libavformat/format.c4
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;