[FFmpeg-devel] [PATCH 1/3] lavc: add AV_CODEC_ID_DAALA and its description

James Almer jamrial at gmail.com
Mon Oct 19 17:50:14 CEST 2015


On 10/19/2015 4:54 AM, Paul B Mahol wrote:
> On 10/19/15, Rostislav Pehlivanov <atomnuker at gmail.com> wrote:
>> ---
>>  libavcodec/avcodec.h    | 1 +
>>  libavcodec/codec_desc.c | 7 +++++++
>>  2 files changed, 8 insertions(+)
>>
>> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
>> index 18889ec..8512d31 100644
>> --- a/libavcodec/avcodec.h
>> +++ b/libavcodec/avcodec.h
>> @@ -220,6 +220,7 @@ enum AVCodecID {
>>      AV_CODEC_ID_MIMIC,
>>      AV_CODEC_ID_RL2,
>>      AV_CODEC_ID_ESCAPE124,
>> +    AV_CODEC_ID_DAALA,
>>      AV_CODEC_ID_DIRAC,
>>      AV_CODEC_ID_BFI,
>>      AV_CODEC_ID_CMV,
> 
> No codecc in middle of list, add it at end.

At the end of the video codec section, to be precise.
So right below AV_CODEC_ID_APNG.

> 
>> diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c
>> index 6979857..01d70ca 100644
>> --- a/libavcodec/codec_desc.c
>> +++ b/libavcodec/codec_desc.c
>> @@ -737,6 +737,13 @@ static const AVCodecDescriptor codec_descriptors[] = {
>>          .props     = AV_CODEC_PROP_LOSSY,
>>      },
>>      {
>> +        .id        = AV_CODEC_ID_DAALA,
>> +        .type      = AVMEDIA_TYPE_VIDEO,
>> +        .name      = "daala",
>> +        .long_name = NULL_IF_CONFIG_SMALL("Daala"),
>> +        .props     = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_LOSSLESS,
>> +    },
>> +    {
>>          .id        = AV_CODEC_ID_DIRAC,
>>          .type      = AVMEDIA_TYPE_VIDEO,
>>          .name      = "dirac",
>> --
>> 2.6.1.204.gc021fdf
>>
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 



More information about the ffmpeg-devel mailing list