Browse Source

av1: Add codec_id and basic demuxing support

Signed-off-by: Diego Biurrun <diego@biurrun.de>
tags/n3.3
Luca Barbato Diego Biurrun 9 years ago
parent
commit
d42809f983
4 changed files with 10 additions and 0 deletions
  1. +1
    -0
      libavcodec/avcodec.h
  2. +7
    -0
      libavcodec/codec_desc.c
  3. +1
    -0
      libavformat/matroska.c
  4. +1
    -0
      libavformat/riff.c

+ 1
- 0
libavcodec/avcodec.h View File

@@ -391,6 +391,7 @@ enum AVCodecID {
AV_CODEC_ID_RSCC,
AV_CODEC_ID_MAGICYUV,
AV_CODEC_ID_TRUEMOTION2RT,
AV_CODEC_ID_AV1,

/* various PCM "codecs" */
AV_CODEC_ID_FIRST_AUDIO = 0x10000, ///< A dummy id pointing at the start of audio codecs


+ 7
- 0
libavcodec/codec_desc.c View File

@@ -1205,6 +1205,13 @@ static const AVCodecDescriptor codec_descriptors[] = {
.long_name = NULL_IF_CONFIG_SMALL("Duck TrueMotion 2.0 Real Time"),
.props = AV_CODEC_PROP_LOSSY,
},
{
.id = AV_CODEC_ID_AV1,
.type = AVMEDIA_TYPE_VIDEO,
.name = "av1",
.long_name = NULL_IF_CONFIG_SMALL("Alliance for Open Media AV1"),
.props = AV_CODEC_PROP_LOSSY,
},

/* image codecs */
{


+ 1
- 0
libavformat/matroska.c View File

@@ -66,6 +66,7 @@ const CodecTags ff_mkv_codec_tags[]={
{"S_DVBSUB" , AV_CODEC_ID_DVB_SUBTITLE},
{"S_HDMV/PGS" , AV_CODEC_ID_HDMV_PGS_SUBTITLE},

{"V_AV1" , AV_CODEC_ID_AV1},
{"V_DIRAC" , AV_CODEC_ID_DIRAC},
{"V_MJPEG" , AV_CODEC_ID_MJPEG},
{"V_MPEG1" , AV_CODEC_ID_MPEG1VIDEO},


+ 1
- 0
libavformat/riff.c View File

@@ -367,6 +367,7 @@ const AVCodecTag ff_codec_bmp_tags[] = {
{ AV_CODEC_ID_RSCC, MKTAG('R', 'S', 'C', 'C') },
{ AV_CODEC_ID_RSCC, MKTAG('I', 'S', 'C', 'C') },
{ AV_CODEC_ID_MAGICYUV, MKTAG('M', 'A', 'G', 'Y') },
{ AV_CODEC_ID_AV1, MKTAG('A', 'V', '0', '1') },
{ AV_CODEC_ID_NONE, 0 }
};



Loading…
Cancel
Save