Commit 82bd740381 for ffmpeg
commit 82bd74038190e4f277327406c723bd7847b68dca
Author: Romain Beauxis <romain.beauxis@gmail.com>
Date: Sun Nov 22 15:14:01 2026 -0500
avformat/ogg/mapping: move to ogg/demuxer/
The codec mappings in ogg/mapping/ are the demuxer's. Name their
directory and header after it, so the muxer's mappings can sit next to
them in ogg/muxer/.
diff --git a/MAINTAINERS b/MAINTAINERS
index 1269d5833e..60c0fc6245 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -470,9 +470,9 @@ Muxers/Demuxers:
nsvdec.c Francois Revol
nut* Michael Niedermayer
nuv.c Reimar Doeffinger
- ogg/demuxer.c, ogg/mapping.h David Conrad, Romain Beauxis
+ ogg/demuxer.c, ogg/demuxer.h David Conrad, Romain Beauxis
ogg/muxer.c Baptiste Coudurier, Romain Beauxis
- ogg/mapping/* David Conrad, Romain Beauxis
+ ogg/demuxer/* David Conrad, Romain Beauxis
oma.c Maxim Poliakovski
pp_bnk.c Zane van Iperen
psxstr.c Mike Melanson
diff --git a/doc/developer.texi b/doc/developer.texi
index 66f57830fc..f0800e6ea7 100644
--- a/doc/developer.texi
+++ b/doc/developer.texi
@@ -394,7 +394,8 @@ feature, for example Ogg or ID3v2.
A subsystem made of more than one file lives in its own directory inside its
library, for example @file{libavformat/ogg/}.
A nested directory groups related files within a subsystem, for example the
-per-codec mappings (@code{struct ogg_codec}) in @file{libavformat/ogg/mapping/}.
+per-codec mappings of the demuxer (@code{struct ogg_codec}) in
+@file{libavformat/ogg/demuxer/}.
@subsection File names
@@ -418,9 +419,9 @@ Files that predate these rules keep their names until a commit moves them.
@subsection Includes
A file includes headers from its own directory by their bare name, for example
-@code{#include "mapping.h"}.
+@code{#include "demuxer.h"}.
It includes all other headers by their path from the source root, for example
-@code{#include "libavformat/ogg/mapping.h"}.
+@code{#include "libavformat/ogg/demuxer.h"}.
The include path then names the group each header belongs to.
@subsection Build system
diff --git a/libavformat/ogg/Makefile b/libavformat/ogg/Makefile
index 5d75953a79..b1e41c54a1 100644
--- a/libavformat/ogg/Makefile
+++ b/libavformat/ogg/Makefile
@@ -2,19 +2,19 @@ HEADER_DIRS += ogg
clean::
$(RM) $(CLEANSUFFIXES:%=libavformat/ogg/%)
- $(RM) $(CLEANSUFFIXES:%=libavformat/ogg/mapping/%)
+ $(RM) $(CLEANSUFFIXES:%=libavformat/ogg/demuxer/%)
OBJS-$(CONFIG_OGG_DEMUXER) += \
ogg/demuxer.o \
- ogg/mapping/dirac.o \
- ogg/mapping/flac.o \
- ogg/mapping/ogm.o \
- ogg/mapping/opus.o \
- ogg/mapping/skeleton.o \
- ogg/mapping/speex.o \
- ogg/mapping/theora.o \
- ogg/mapping/vorbis.o \
- ogg/mapping/vp8.o \
+ ogg/demuxer/dirac.o \
+ ogg/demuxer/flac.o \
+ ogg/demuxer/ogm.o \
+ ogg/demuxer/opus.o \
+ ogg/demuxer/skeleton.o \
+ ogg/demuxer/speex.o \
+ ogg/demuxer/theora.o \
+ ogg/demuxer/vorbis.o \
+ ogg/demuxer/vp8.o \
OBJS-$(CONFIG_OGA_MUXER) += ogg/muxer.o
OBJS-$(CONFIG_OGG_MUXER) += ogg/muxer.o
diff --git a/libavformat/ogg/demuxer.c b/libavformat/ogg/demuxer.c
index 015f0e1b9c..c6c8dcc693 100644
--- a/libavformat/ogg/demuxer.c
+++ b/libavformat/ogg/demuxer.c
@@ -34,7 +34,7 @@
#include "libavutil/mem.h"
#include "libavformat/avio_internal.h"
#include "libavformat/demux.h"
-#include "mapping.h"
+#include "demuxer.h"
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
diff --git a/libavformat/ogg/mapping.h b/libavformat/ogg/demuxer.h
similarity index 98%
rename from libavformat/ogg/mapping.h
rename to libavformat/ogg/demuxer.h
index eed10aaa98..ac44c32911 100644
--- a/libavformat/ogg/mapping.h
+++ b/libavformat/ogg/demuxer.h
@@ -22,8 +22,8 @@
DEALINGS IN THE SOFTWARE.
**/
-#ifndef AVFORMAT_OGG_MAPPING_H
-#define AVFORMAT_OGG_MAPPING_H
+#ifndef AVFORMAT_OGG_DEMUXER_H
+#define AVFORMAT_OGG_DEMUXER_H
#include "libavformat/avformat.h"
@@ -188,4 +188,4 @@ ogg_gptopts (AVFormatContext * s, int i, uint64_t gp, int64_t *dts)
return pts;
}
-#endif /* AVFORMAT_OGG_MAPPING_H */
+#endif /* AVFORMAT_OGG_DEMUXER_H */
diff --git a/libavformat/ogg/mapping/dirac.c b/libavformat/ogg/demuxer/dirac.c
similarity index 99%
rename from libavformat/ogg/mapping/dirac.c
rename to libavformat/ogg/demuxer/dirac.c
index 7b6523ac05..3fadb6e807 100644
--- a/libavformat/ogg/mapping/dirac.c
+++ b/libavformat/ogg/demuxer/dirac.c
@@ -24,7 +24,7 @@
#include "libavcodec/dirac.h"
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
-#include "libavformat/ogg/mapping.h"
+#include "libavformat/ogg/demuxer.h"
static int dirac_header(AVFormatContext *s, int idx)
{
diff --git a/libavformat/ogg/mapping/flac.c b/libavformat/ogg/demuxer/flac.c
similarity index 99%
rename from libavformat/ogg/mapping/flac.c
rename to libavformat/ogg/demuxer/flac.c
index a9c0317a9b..c0b0e059f1 100644
--- a/libavformat/ogg/mapping/flac.c
+++ b/libavformat/ogg/demuxer/flac.c
@@ -25,7 +25,7 @@
#include "libavcodec/flac.h"
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
-#include "libavformat/ogg/mapping.h"
+#include "libavformat/ogg/demuxer.h"
#include "libavformat/vorbis/comment.h"
#define OGG_FLAC_METADATA_TYPE_STREAMINFO 0x7F
diff --git a/libavformat/ogg/mapping/ogm.c b/libavformat/ogg/demuxer/ogm.c
similarity index 99%
rename from libavformat/ogg/mapping/ogm.c
rename to libavformat/ogg/demuxer/ogm.c
index 1db2268ea0..b7110f8a3f 100644
--- a/libavformat/ogg/mapping/ogm.c
+++ b/libavformat/ogg/demuxer/ogm.c
@@ -30,7 +30,7 @@
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
-#include "libavformat/ogg/mapping.h"
+#include "libavformat/ogg/demuxer.h"
#include "libavformat/vorbis/comment.h"
#include "libavformat/riff.h"
diff --git a/libavformat/ogg/mapping/opus.c b/libavformat/ogg/demuxer/opus.c
similarity index 99%
rename from libavformat/ogg/mapping/opus.c
rename to libavformat/ogg/demuxer/opus.c
index 714c4709b6..0b09552c7c 100644
--- a/libavformat/ogg/mapping/opus.c
+++ b/libavformat/ogg/demuxer/opus.c
@@ -26,7 +26,7 @@
#include "libavcodec/opus/tab.h"
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
-#include "libavformat/ogg/mapping.h"
+#include "libavformat/ogg/demuxer.h"
#include "libavformat/vorbis/comment.h"
struct oggopus_private {
diff --git a/libavformat/ogg/mapping/skeleton.c b/libavformat/ogg/demuxer/skeleton.c
similarity index 98%
rename from libavformat/ogg/mapping/skeleton.c
rename to libavformat/ogg/demuxer/skeleton.c
index 53eb176f98..9624b5f173 100644
--- a/libavformat/ogg/mapping/skeleton.c
+++ b/libavformat/ogg/demuxer/skeleton.c
@@ -21,7 +21,7 @@
#include "libavutil/intreadwrite.h"
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
-#include "libavformat/ogg/mapping.h"
+#include "libavformat/ogg/demuxer.h"
static int skeleton_header(AVFormatContext *s, int idx)
{
diff --git a/libavformat/ogg/mapping/speex.c b/libavformat/ogg/demuxer/speex.c
similarity index 99%
rename from libavformat/ogg/mapping/speex.c
rename to libavformat/ogg/demuxer/speex.c
index f15d3e50d0..3beefac84d 100644
--- a/libavformat/ogg/mapping/speex.c
+++ b/libavformat/ogg/demuxer/speex.c
@@ -28,7 +28,7 @@
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
-#include "libavformat/ogg/mapping.h"
+#include "libavformat/ogg/demuxer.h"
#include "libavformat/vorbis/comment.h"
struct speex_params {
diff --git a/libavformat/ogg/mapping/theora.c b/libavformat/ogg/demuxer/theora.c
similarity index 99%
rename from libavformat/ogg/mapping/theora.c
rename to libavformat/ogg/demuxer/theora.c
index 58de1fcf1d..4fd66541bb 100644
--- a/libavformat/ogg/mapping/theora.c
+++ b/libavformat/ogg/demuxer/theora.c
@@ -28,7 +28,7 @@
#include "libavcodec/get_bits.h"
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
-#include "libavformat/ogg/mapping.h"
+#include "libavformat/ogg/demuxer.h"
#include "libavformat/vorbis/comment.h"
enum TheoraPacketType {
diff --git a/libavformat/ogg/mapping/vorbis.c b/libavformat/ogg/demuxer/vorbis.c
similarity index 99%
rename from libavformat/ogg/mapping/vorbis.c
rename to libavformat/ogg/demuxer/vorbis.c
index e3380d665a..fd5b26fbd3 100644
--- a/libavformat/ogg/mapping/vorbis.c
+++ b/libavformat/ogg/demuxer/vorbis.c
@@ -33,7 +33,7 @@
#include "libavformat/avformat.h"
#include "libavformat/demux.h"
#include "libavformat/internal.h"
-#include "libavformat/ogg/mapping.h"
+#include "libavformat/ogg/demuxer.h"
#include "libavformat/vorbis/comment.h"
#include "libavformat/replaygain.h"
diff --git a/libavformat/ogg/mapping/vp8.c b/libavformat/ogg/demuxer/vp8.c
similarity index 99%
rename from libavformat/ogg/mapping/vp8.c
rename to libavformat/ogg/demuxer/vp8.c
index 0bf22bb03d..9b5569e075 100644
--- a/libavformat/ogg/mapping/vp8.c
+++ b/libavformat/ogg/demuxer/vp8.c
@@ -23,7 +23,7 @@
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
-#include "libavformat/ogg/mapping.h"
+#include "libavformat/ogg/demuxer.h"
#include "libavformat/vorbis/comment.h"
#define VP8_HEADER_SIZE 26