diff mbox

[FFmpeg-devel] lavf/mpegts: add support for AVS2

Message ID 1527317401-13326-1-git-send-email-hwrenx@126.com
State New
Headers show

Commit Message

hwren May 26, 2018, 6:50 a.m. UTC
Signed-off-by: hwren <hwrenx@126.com>
---
 libavformat/mpegts.c | 1 +
 libavformat/mpegts.h | 1 +
 2 files changed, 2 insertions(+)

Comments

Carl Eugen Hoyos July 10, 2018, 12:58 p.m. UTC | #1
2018-05-26 8:50 GMT+02:00, hwren <hwrenx@126.com>:

> diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h
> index 272e2be..b37db3c 100644
> --- a/libavformat/mpegts.h
> +++ b/libavformat/mpegts.h
> @@ -55,6 +55,7 @@
>  #define STREAM_TYPE_VIDEO_H264      0x1b
>  #define STREAM_TYPE_VIDEO_HEVC      0x24
>  #define STREAM_TYPE_VIDEO_CAVS      0x42
> +#define STREAM_TYPE_VIDEO_AVS2      0xd2

This hunk should be part of the patch changing mpegtsenc.c
(It is not needed for demuxing, only for muxing.)

Carl Eugen
Carl Eugen Hoyos Sept. 18, 2019, 12:20 a.m. UTC | #2
Am Sa., 26. Mai 2018 um 08:50 Uhr schrieb hwren <hwrenx@126.com>:
>
> Signed-off-by: hwren <hwrenx@126.com>
> ---
>  libavformat/mpegts.c | 1 +
>  libavformat/mpegts.h | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
> index 5f53f77..6674cd0 100644
> --- a/libavformat/mpegts.c
> +++ b/libavformat/mpegts.c
> @@ -735,6 +735,7 @@ static const StreamType ISO_types[] = {
>      { 0x21, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_JPEG2000   },
>      { 0x24, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_HEVC       },
>      { 0x42, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_CAVS       },
> +    { 0xd2, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_AVS2       },
>      { 0xd1, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_DIRAC      },
>      { 0xea, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_VC1        },
>      { 0 },

Pushed this hunk.

Carl Eugen
diff mbox

Patch

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 5f53f77..6674cd0 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -735,6 +735,7 @@  static const StreamType ISO_types[] = {
     { 0x21, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_JPEG2000   },
     { 0x24, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_HEVC       },
     { 0x42, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_CAVS       },
+    { 0xd2, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_AVS2       },
     { 0xd1, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_DIRAC      },
     { 0xea, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_VC1        },
     { 0 },
diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h
index 272e2be..b37db3c 100644
--- a/libavformat/mpegts.h
+++ b/libavformat/mpegts.h
@@ -55,6 +55,7 @@ 
 #define STREAM_TYPE_VIDEO_H264      0x1b
 #define STREAM_TYPE_VIDEO_HEVC      0x24
 #define STREAM_TYPE_VIDEO_CAVS      0x42
+#define STREAM_TYPE_VIDEO_AVS2      0xd2
 #define STREAM_TYPE_VIDEO_VC1       0xea
 #define STREAM_TYPE_VIDEO_DIRAC     0xd1