@@ -20,7 +20,7 @@
#include "libavutil/imgutils.h"
-#include "flv.h"
+#include "flvdec.h"
#include "h263dec.h"
#include "mpegvideo.h"
#include "mpegvideodata.h"
new file mode 100644
@@ -0,0 +1,29 @@
+/*
+ * FLV decoder header.
+ *
+ * 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
+ */
+
+#ifndef AVCODEC_FLVDEC_H
+#define AVCODEC_FLVDEC_H
+
+#include "get_bits.h"
+#include "mpegvideo.h"
+
+int ff_flv_decode_picture_header(MpegEncContext *s);
+
+#endif /* AVCODEC_FLVDEC_H */
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "flv.h"
+#include "flvenc.h"
#include "h263data.h"
#include "mpegvideo.h"
#include "mpegvideodata.h"
similarity index 87%
rename from libavcodec/flv.h
rename to libavcodec/flvenc.h
@@ -1,5 +1,5 @@
/*
- * FLV specific private header.
+ * FLV encoder header.
*
* This file is part of FFmpeg.
*
@@ -18,10 +18,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef AVCODEC_FLV_H
-#define AVCODEC_FLV_H
+#ifndef AVCODEC_FLVENC_H
+#define AVCODEC_FLVENC_H
-#include "get_bits.h"
#include "mpegvideo.h"
#include "put_bits.h"
@@ -29,6 +28,4 @@ void ff_flv_encode_picture_header(MpegEncContext *s, int picture_number);
void ff_flv2_encode_ac_esc(PutBitContext *pb, int slevel, int level, int run,
int last);
-int ff_flv_decode_picture_header(MpegEncContext *s);
-
#endif /* AVCODEC_FLV_H */
@@ -31,7 +31,7 @@
#include "avcodec.h"
#include "error_resilience.h"
-#include "flv.h"
+#include "flvdec.h"
#include "h263.h"
#include "h263dec.h"
#if FF_API_FLAG_TRUNCATED
@@ -28,7 +28,6 @@
*/
#define UNCHECKED_BITSTREAM_READER 1
-#include <limits.h>
#include "libavutil/attributes.h"
#include "libavutil/imgutils.h"
@@ -40,11 +39,9 @@
#include "h263.h"
#include "h263data.h"
#include "h263dec.h"
-#include "internal.h"
#include "mathops.h"
#include "mpegutils.h"
#include "unary.h"
-#include "flv.h"
#include "rv10.h"
#include "mpeg4video.h"
#include "mpegvideodata.h"
@@ -34,12 +34,12 @@
#include "avcodec.h"
#include "mpegvideo.h"
#include "mpegvideodata.h"
+#include "flvenc.h"
#include "h263.h"
#include "h263enc.h"
#include "h263data.h"
#include "mathops.h"
#include "mpegutils.h"
-#include "flv.h"
#include "internal.h"
/**
@@ -63,7 +63,7 @@
#include "faandct.h"
#include "thread.h"
#include "aandcttab.h"
-#include "flv.h"
+#include "flvenc.h"
#include "mpeg4video.h"
#include "mpeg4videodata.h"
#include "mpeg4videoenc.h"
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/flvdec.c | 2 +- libavcodec/flvdec.h | 29 +++++++++++++++++++++++++++++ libavcodec/flvenc.c | 2 +- libavcodec/{flv.h => flvenc.h} | 9 +++------ libavcodec/h263dec.c | 2 +- libavcodec/ituh263dec.c | 3 --- libavcodec/ituh263enc.c | 2 +- libavcodec/mpegvideo_enc.c | 2 +- 8 files changed, 37 insertions(+), 14 deletions(-) create mode 100644 libavcodec/flvdec.h rename libavcodec/{flv.h => flvenc.h} (87%)