]> git.sesse.net Git - ffmpeg/commit
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)
commitd29aaf12f4f6af4490604852b066ff8cd58104ed
tree87e514530a506defb8b220bffd281477d80c9fde
parent27c42d33bce9fa10fc91c54be3751565d5a4eae3
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>
libavcodec/v4l2_m2m_enc.c