diff mbox

[FFmpeg-devel] Added HEVC and Opus support to nut

Message ID 20170328210747.32025-1-leo.izen@gmail.com
State Accepted
Commit 744916908167951c8d3590bc8efeac0ffe35c1ee
Headers show

Commit Message

Leo Izen March 28, 2017, 9:07 p.m. UTC
---
 libavformat/nut.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Michael Niedermayer March 30, 2017, 12:56 a.m. UTC | #1
On Tue, Mar 28, 2017 at 05:07:47PM -0400, Leo Izen wrote:
> ---
>  libavformat/nut.c | 2 ++
>  1 file changed, 2 insertions(+)

please submit a patch updating docs/nut4cc.txt to
nut-devel at mplayerhq.hu first.

We should not use codec identifers which are not in the spec,
the spec should be updated first (which is easy)

also dont hesitate to CC me or ffmpeg-devel on the mail to
nut-devel

thx

[...]
Michael Niedermayer March 30, 2017, 11:25 a.m. UTC | #2
On Tue, Mar 28, 2017 at 05:07:47PM -0400, Leo Izen wrote:
> ---
>  libavformat/nut.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavformat/nut.c b/libavformat/nut.c
> index 04776e249f..592fe4dc28 100644
> --- a/libavformat/nut.c
> +++ b/libavformat/nut.c
> @@ -42,6 +42,7 @@ const AVCodecTag ff_nut_video_tags[] = {
>      { AV_CODEC_ID_GIF,              MKTAG('G', 'I', 'F',  0 ) },
>      { AV_CODEC_ID_XFACE,            MKTAG('X', 'F', 'A', 'C') },
>      { AV_CODEC_ID_VP9,              MKTAG('V', 'P', '9', '0') },
> +    { AV_CODEC_ID_HEVC,             MKTAG('H', 'E', 'V', 'C') },
>      { AV_CODEC_ID_RAWVIDEO,         MKTAG('R', 'G', 'B', 15 ) },
>      { AV_CODEC_ID_RAWVIDEO,         MKTAG('B', 'G', 'R', 15 ) },
>      { AV_CODEC_ID_RAWVIDEO,         MKTAG('R', 'G', 'B', 16 ) },
> @@ -201,6 +202,7 @@ const AVCodecTag ff_nut_audio_extra_tags[] = {
>      { AV_CODEC_ID_PCM_ALAW,         MKTAG('A', 'L', 'A', 'W') },
>      { AV_CODEC_ID_PCM_MULAW,        MKTAG('U', 'L', 'A', 'W') },
>      { AV_CODEC_ID_MP3,              MKTAG('M', 'P', '3', ' ') },
> +    { AV_CODEC_ID_OPUS,             MKTAG('O', 'p', 'u', 's') },
>      { AV_CODEC_ID_WAVPACK,          MKTAG('w', 'v', 'p', 'k') },
>      { AV_CODEC_ID_NONE,             0                         }
>  };

applied

thx

[...]
diff mbox

Patch

diff --git a/libavformat/nut.c b/libavformat/nut.c
index 04776e249f..592fe4dc28 100644
--- a/libavformat/nut.c
+++ b/libavformat/nut.c
@@ -42,6 +42,7 @@  const AVCodecTag ff_nut_video_tags[] = {
     { AV_CODEC_ID_GIF,              MKTAG('G', 'I', 'F',  0 ) },
     { AV_CODEC_ID_XFACE,            MKTAG('X', 'F', 'A', 'C') },
     { AV_CODEC_ID_VP9,              MKTAG('V', 'P', '9', '0') },
+    { AV_CODEC_ID_HEVC,             MKTAG('H', 'E', 'V', 'C') },
     { AV_CODEC_ID_RAWVIDEO,         MKTAG('R', 'G', 'B', 15 ) },
     { AV_CODEC_ID_RAWVIDEO,         MKTAG('B', 'G', 'R', 15 ) },
     { AV_CODEC_ID_RAWVIDEO,         MKTAG('R', 'G', 'B', 16 ) },
@@ -201,6 +202,7 @@  const AVCodecTag ff_nut_audio_extra_tags[] = {
     { AV_CODEC_ID_PCM_ALAW,         MKTAG('A', 'L', 'A', 'W') },
     { AV_CODEC_ID_PCM_MULAW,        MKTAG('U', 'L', 'A', 'W') },
     { AV_CODEC_ID_MP3,              MKTAG('M', 'P', '3', ' ') },
+    { AV_CODEC_ID_OPUS,             MKTAG('O', 'p', 'u', 's') },
     { AV_CODEC_ID_WAVPACK,          MKTAG('w', 'v', 'p', 'k') },
     { AV_CODEC_ID_NONE,             0                         }
 };