History

Move AVMediaType from libavcodec to libavutil.

This allows applications/libraries which require that symbol (e.g. libavfilter) to be compiled without to depend on the presence of libavcodec/avcodec.h, which may not be installed. Originally committed as revision 22736 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit 11491501 parent 72415b22 files · +11 −11Browse files

Unified · Split

2 files
  1. libavcodec/avcodec.h +0 −10
  2. libavutil/avutil.h +11 −1
libavcodec/avcodec.h+0−10
@@ -355,16 +355,6 @@ enum CodecID { · 354 unmodified lines
355355 * stream (only used by libavformat) */
356356 };
357357
358−enum AVMediaType {
359− AVMEDIA_TYPE_UNKNOWN = -1,
360− AVMEDIA_TYPE_VIDEO,
361− AVMEDIA_TYPE_AUDIO,
362− AVMEDIA_TYPE_DATA,
363− AVMEDIA_TYPE_SUBTITLE,
364− AVMEDIA_TYPE_ATTACHMENT,
365− AVMEDIA_TYPE_NB
366−};
367−
368358 #if LIBAVCODEC_VERSION_MAJOR < 53
369359 #define CodecType AVMediaType
370360
libavutil/avutil.h+11−1
@@ -40,7 +40,7 @@ · 39 unmodified lines
4040 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
4141
4242 #define LIBAVUTIL_VERSION_MAJOR 50
43−#define LIBAVUTIL_VERSION_MINOR 13
43+#define LIBAVUTIL_VERSION_MINOR 14
4444 #define LIBAVUTIL_VERSION_MICRO 0
4545
4646 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
@@ -68,6 +68,16 @@ const char *avutil_configuration(void); · 21 unmodified lines
6868 */
6969 const char *avutil_license(void);
7070
71+enum AVMediaType {
72+ AVMEDIA_TYPE_UNKNOWN = -1,
73+ AVMEDIA_TYPE_VIDEO,
74+ AVMEDIA_TYPE_AUDIO,
75+ AVMEDIA_TYPE_DATA,
76+ AVMEDIA_TYPE_SUBTITLE,
77+ AVMEDIA_TYPE_ATTACHMENT,
78+ AVMEDIA_TYPE_NB
79+};
80+
7181 #include "common.h"
7282 #include "error.h"
7383 #include "mathematics.h"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t