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
355 * stream (only used by libavformat) */355 * stream (only used by libavformat) */
356};356};
357 357
358enum 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
368#if LIBAVCODEC_VERSION_MAJOR < 53358#if LIBAVCODEC_VERSION_MAJOR < 53
369#define CodecType AVMediaType359#define CodecType AVMediaType
370 360
libavutil/avutil.h+11−1
@@ -40,7 +40,7 @@ · 39 unmodified lines
40#define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)40#define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
41 41
42#define LIBAVUTIL_VERSION_MAJOR 5042#define LIBAVUTIL_VERSION_MAJOR 50
43#define LIBAVUTIL_VERSION_MINOR 1343#define LIBAVUTIL_VERSION_MINOR 14
44#define LIBAVUTIL_VERSION_MICRO 044#define LIBAVUTIL_VERSION_MICRO 0
45 45
46#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \46#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
@@ -68,6 +68,16 @@ const char *avutil_configuration(void); · 21 unmodified lines
68 */68 */
69const char *avutil_license(void);69const char *avutil_license(void);
70 70
71enum 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
71#include "common.h"81#include "common.h"
72#include "error.h"82#include "error.h"
73#include "mathematics.h"83#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