diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-18 12:27:44 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-20 14:20:25 +0200 |
commit | 69e2c1a95ac4dd00cb09ba3a166efc1275f5ba40 (patch) | |
tree | a3a32177a562feb4d7ef1a7e3ad82e09769ec29a /libavutil/avutil.h | |
parent | 31ac0ac29b6bba744493f7d1040757a3f51b9ad7 (diff) | |
download | ffmpeg-69e2c1a95ac4dd00cb09ba3a166efc1275f5ba40.tar.gz |
lavu: add av_get_media_type_string() convenience function
Avoid code duplication.
Diffstat (limited to 'libavutil/avutil.h')
-rw-r--r-- | libavutil/avutil.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavutil/avutil.h b/libavutil/avutil.h index fc437dd21f..25b55672b2 100644 --- a/libavutil/avutil.h +++ b/libavutil/avutil.h @@ -40,7 +40,7 @@ #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c) #define LIBAVUTIL_VERSION_MAJOR 51 -#define LIBAVUTIL_VERSION_MINOR 12 +#define LIBAVUTIL_VERSION_MINOR 13 #define LIBAVUTIL_VERSION_MICRO 0 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ @@ -95,6 +95,12 @@ enum AVMediaType { AVMEDIA_TYPE_NB }; +/** + * Return a string describing the media_type enum, NULL if media_type + * is unknown. + */ +const char *av_get_media_type_string(enum AVMediaType media_type); + #define FF_LAMBDA_SHIFT 7 #define FF_LAMBDA_SCALE (1<<FF_LAMBDA_SHIFT) #define FF_QP2LAMBDA 118 ///< factor to convert from H.263 QP to lambda |