[FFmpeg-devel] [PATCH] lavfi: remove stray semicolons.

Nicolas George george at nsup.org
Thu Jan 12 15:58:20 EET 2017


Hopefully fix compilation with suncc.

Signed-off-by: Nicolas George <george at nsup.org>
---
 libavfilter/asrc_anoisesrc.c |  2 +-
 libavfilter/buffersink.c     | 22 +++++++++++-----------
 2 files changed, 12 insertions(+), 12 deletions(-)


Well, I am responsible for some of them, but not all of them, and it has
been broken for quite some time.


diff --git a/libavfilter/asrc_anoisesrc.c b/libavfilter/asrc_anoisesrc.c
index e4d4013749..709224c4cb 100644
--- a/libavfilter/asrc_anoisesrc.c
+++ b/libavfilter/asrc_anoisesrc.c
@@ -103,7 +103,7 @@ static av_cold int query_formats(AVFilterContext *ctx)
 static double white_filter(double white, double *buf)
 {
     return white;
-};
+}
 
 static double pink_filter(double white, double *buf)
 {
diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c
index b301e9f5ee..0f87b5439a 100644
--- a/libavfilter/buffersink.c
+++ b/libavfilter/buffersink.c
@@ -186,20 +186,20 @@ type av_buffersink_get_##field(const AVFilterContext *ctx) { \
     return ctx->inputs[0]->field; \
 }
 
-MAKE_AVFILTERLINK_ACCESSOR(enum AVMediaType , type               );
-MAKE_AVFILTERLINK_ACCESSOR(AVRational       , time_base          );
-MAKE_AVFILTERLINK_ACCESSOR(int              , format             );
+MAKE_AVFILTERLINK_ACCESSOR(enum AVMediaType , type               )
+MAKE_AVFILTERLINK_ACCESSOR(AVRational       , time_base          )
+MAKE_AVFILTERLINK_ACCESSOR(int              , format             )
 
-MAKE_AVFILTERLINK_ACCESSOR(AVRational       , frame_rate         );
-MAKE_AVFILTERLINK_ACCESSOR(int              , w                  );
-MAKE_AVFILTERLINK_ACCESSOR(int              , h                  );
-MAKE_AVFILTERLINK_ACCESSOR(AVRational       , sample_aspect_ratio);
+MAKE_AVFILTERLINK_ACCESSOR(AVRational       , frame_rate         )
+MAKE_AVFILTERLINK_ACCESSOR(int              , w                  )
+MAKE_AVFILTERLINK_ACCESSOR(int              , h                  )
+MAKE_AVFILTERLINK_ACCESSOR(AVRational       , sample_aspect_ratio)
 
-MAKE_AVFILTERLINK_ACCESSOR(int              , channels           );
-MAKE_AVFILTERLINK_ACCESSOR(uint64_t         , channel_layout     );
-MAKE_AVFILTERLINK_ACCESSOR(int              , sample_rate        );
+MAKE_AVFILTERLINK_ACCESSOR(int              , channels           )
+MAKE_AVFILTERLINK_ACCESSOR(uint64_t         , channel_layout     )
+MAKE_AVFILTERLINK_ACCESSOR(int              , sample_rate        )
 
-MAKE_AVFILTERLINK_ACCESSOR(AVBufferRef *    , hw_frames_ctx      );
+MAKE_AVFILTERLINK_ACCESSOR(AVBufferRef *    , hw_frames_ctx      )
 
 static av_cold int vsink_init(AVFilterContext *ctx, void *opaque)
 {
-- 
2.11.0



More information about the ffmpeg-devel mailing list