[FFmpeg-devel] [PATCH] Make AVCodecTag non-opaque.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sat Oct 22 13:03:53 CEST 2011
This may make keeping ABI-compatibility harder, but without it
av_codec_get_id and av_codec_get_tag cannot be reused by
applications for their own purposes.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
libavformat/avformat.h | 5 ++++-
libavformat/internal.h | 5 -----
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 441f85d..533d98a 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -226,7 +226,10 @@ typedef struct AVFrac {
/*************************************************/
/* input/output formats */
-struct AVCodecTag;
+typedef struct AVCodecTag {
+ enum CodecID id;
+ unsigned int tag;
+} AVCodecTag;
/**
* This structure contains the data a format has to probe a file.
diff --git a/libavformat/internal.h b/libavformat/internal.h
index a2e80f2..172f163 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -32,11 +32,6 @@
# define hex_dump_debug(class, buf, size)
#endif
-typedef struct AVCodecTag {
- enum CodecID id;
- unsigned int tag;
-} AVCodecTag;
-
#ifdef __GNUC__
#define dynarray_add(tab, nb_ptr, elem)\
do {\
--
1.7.7
More information about the ffmpeg-devel
mailing list