[FFmpeg-devel] [FFMpeg-Devel] [PATCH 3/7] Fixed copyright on postprocess_c.c

Tucker DiNapoli t.dinapoli42 at gmail.com
Fri Mar 13 19:15:10 CET 2015


Also made it an error to try and generate C postprocessing routines from
postprocess_template.c
---
 libpostproc/postprocess_c.c        | 41 +++++++++++++++++++-------------------
 libpostproc/postprocess_template.c |  4 +---
 2 files changed, 21 insertions(+), 24 deletions(-)

diff --git a/libpostproc/postprocess_c.c b/libpostproc/postprocess_c.c
index 5f9cb18..3d3b738 100644
--- a/libpostproc/postprocess_c.c
+++ b/libpostproc/postprocess_c.c
@@ -1,24 +1,23 @@
-/******************************************************************************
-* C implementation of postprocessing routines
-* Copyright (C) 2001-2002 Michael Niedermayer (michaelni at gmx.at)
-* Copyright (c) 2015 Tucker DiNapoli
-*
-* This file is part of FFmpeg.
-*
-* FFmpeg is free software; you can redistribute it and/or
-* modify it under the terms of the GNU Lesser General Public
-* License as published by the Free Software Foundation; either
-* version 2.1 of the License, or (at your option) any later version.
-*
-* FFmpeg is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with FFmpeg; if not, write to the Free Software
-* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-******************************************************************************/
+/*  C implementation of postprocessing routines
+ *
+ * Copyright (C) 2001-2003 Michael Niedermayer (michaelni at gmx.at)
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
 
 /* The horizontal functions exist only in C because the MMX
  * code is faster with vertical filters and transposing. */
diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c
index 6722f96..25f60ab 100644
--- a/libpostproc/postprocess_template.c
+++ b/libpostproc/postprocess_template.c
@@ -31,9 +31,7 @@
  * TEMPLATE_PP_* need to be undef at the end. */
 
 #ifdef TEMPLATE_PP_C
-#   define RENAME(a) a ## _C
-#else
-#   define TEMPLATE_PP_C 0
+#   error "Use postprocess_c.c for C postprocessing functions not postprocess_template.c"
 #endif
 
 #ifdef TEMPLATE_PP_ALTIVEC
-- 
2.2.1



More information about the ffmpeg-devel mailing list