Browse code

avcodec/v4l2_m2m_enc: Avoid ;;

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>

Andreas Rheinhardt authored on 2020/06/01 18:51:40
Showing 1 changed files
... ...
@@ -417,7 +417,7 @@ static const AVCodecDefault v4l2_m2m_defaults[] = {
417 417
         .defaults       = v4l2_m2m_defaults, \
418 418
         .capabilities   = AV_CODEC_CAP_HARDWARE | AV_CODEC_CAP_DELAY, \
419 419
         .wrapper_name   = "v4l2m2m", \
420
-    };
420
+    }
421 421
 
422 422
 M2MENC(mpeg4,"MPEG4", mpeg4_options, AV_CODEC_ID_MPEG4);
423 423
 M2MENC(h263, "H.263", options,       AV_CODEC_ID_H263);