[FFmpeg-cvslog] g729: Merge g729.h into g729dec.c.

Diego Biurrun git at videolan.org
Thu May 19 13:10:59 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Tue May 17 15:29:58 2011 +0200| [a2077b85da5bf71167b11925aabbb738558a134d] | committer: Diego Biurrun

g729: Merge g729.h into g729dec.c.

The header contains just a single define that is only used in g729dec.c.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a2077b85da5bf71167b11925aabbb738558a134d
---

 libavcodec/g729.h    |   29 -----------------------------
 libavcodec/g729dec.c |    7 ++++++-
 2 files changed, 6 insertions(+), 30 deletions(-)

diff --git a/libavcodec/g729.h b/libavcodec/g729.h
deleted file mode 100644
index 9cae471..0000000
--- a/libavcodec/g729.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * G.729 decoder
- * Copyright (c) 2008 Vladimir Voroshilov
- *
- * This file is part of Libav.
- *
- * Libav 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.
- *
- * Libav 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 Libav; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-#ifndef AVCODEC_G729_H
-#define AVCODEC_G729_H
-
-/**
- * subframe size
- */
-#define SUBFRAME_SIZE 40
-
-#endif // AVCODEC_G729_H
diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c
index 5763108..979b87f 100644
--- a/libavcodec/g729dec.c
+++ b/libavcodec/g729dec.c
@@ -30,7 +30,6 @@
 #include "libavutil/avutil.h"
 #include "get_bits.h"
 
-#include "g729.h"
 #include "lsp.h"
 #include "celp_math.h"
 #include "acelp_filters.h"
@@ -71,6 +70,12 @@
  */
 #define SHARP_MAX                  13017
 
+/**
+ * subframe size
+ */
+#define SUBFRAME_SIZE              40
+
+
 typedef struct {
     uint8_t ac_index_bits[2];   ///< adaptive codebook index for second subframe (size in bits)
     uint8_t parity_bit;         ///< parity bit for pitch delay



More information about the ffmpeg-cvslog mailing list