]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/v4l2_m2m_enc: Avoid ;;
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 1 Jun 2020 09:51:40 +0000 (11:51 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 7 Jun 2020 23:22:34 +0000 (01:22 +0200)
Inside a function, the second ; in a double ;; is a null statement, but
outside of functions a double ;; is simply invalid C that compilers
happen to accept. v4l2_m2m_enc.c contained several ;; as a result of
macro-expansion. So change the underlying macro so that it doesn't
happen any longer.

This fixes warnings when compiling with -pedantic: "ISO C does not allow
extra ‘;’ outside of a function".

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/v4l2_m2m_enc.c

index a21a7b6c6576acd131ef1ed667e088ee89a1923f..32321f392fc4644a49aed3820eb9d72a8d47ee45 100644 (file)
@@ -417,7 +417,7 @@ static const AVCodecDefault v4l2_m2m_defaults[] = {
         .defaults       = v4l2_m2m_defaults, \
         .capabilities   = AV_CODEC_CAP_HARDWARE | AV_CODEC_CAP_DELAY, \
         .wrapper_name   = "v4l2m2m", \
-    };
+    }
 
 M2MENC(mpeg4,"MPEG4", mpeg4_options, AV_CODEC_ID_MPEG4);
 M2MENC(h263, "H.263", options,       AV_CODEC_ID_H263);