[FFmpeg-devel] lavc/extract_extradata_bsf.c: add AVS2

Submitted by hwren on Aug. 6, 2018, 1:42 p.m.

Details

Message ID 1533562971-7438-1-git-send-email-hwrenx@126.com
State Accepted
Commit b8da7ba5ac99e434fe99e12c105cc52cab147059
Headers show

Commit Message

hwren Aug. 6, 2018, 1:42 p.m.
Signed-off-by: hwren <hwrenx@126.com>
---
 libavcodec/extract_extradata_bsf.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

James Almer Aug. 22, 2018, 12:27 a.m.
On 8/6/2018 10:42 AM, hwren wrote:
> Signed-off-by: hwren <hwrenx@126.com>
> ---
>  libavcodec/extract_extradata_bsf.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavcodec/extract_extradata_bsf.c b/libavcodec/extract_extradata_bsf.c
> index 6deb663..f37427c 100644
> --- a/libavcodec/extract_extradata_bsf.c
> +++ b/libavcodec/extract_extradata_bsf.c
> @@ -331,6 +331,7 @@ static const struct {
>                     uint8_t **data, int *size);
>  } extract_tab[] = {
>      { AV_CODEC_ID_AV1,        extract_extradata_av1     },
> +    { AV_CODEC_ID_AVS2,       extract_extradata_mpeg4   },
>      { AV_CODEC_ID_CAVS,       extract_extradata_mpeg4   },
>      { AV_CODEC_ID_H264,       extract_extradata_h2645   },
>      { AV_CODEC_ID_HEVC,       extract_extradata_h2645   },
> @@ -397,6 +398,7 @@ static void extract_extradata_close(AVBSFContext *ctx)
>  
>  static const enum AVCodecID codec_ids[] = {
>      AV_CODEC_ID_AV1,
> +    AV_CODEC_ID_AVS2,
>      AV_CODEC_ID_CAVS,
>      AV_CODEC_ID_H264,
>      AV_CODEC_ID_HEVC,
> 

Should be ok.
Michael Niedermayer Aug. 23, 2018, 12:11 p.m.
On Tue, Aug 21, 2018 at 09:27:27PM -0300, James Almer wrote:
> On 8/6/2018 10:42 AM, hwren wrote:
> > Signed-off-by: hwren <hwrenx@126.com>
> > ---
> >  libavcodec/extract_extradata_bsf.c | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/libavcodec/extract_extradata_bsf.c b/libavcodec/extract_extradata_bsf.c
> > index 6deb663..f37427c 100644
> > --- a/libavcodec/extract_extradata_bsf.c
> > +++ b/libavcodec/extract_extradata_bsf.c
> > @@ -331,6 +331,7 @@ static const struct {
> >                     uint8_t **data, int *size);
> >  } extract_tab[] = {
> >      { AV_CODEC_ID_AV1,        extract_extradata_av1     },
> > +    { AV_CODEC_ID_AVS2,       extract_extradata_mpeg4   },
> >      { AV_CODEC_ID_CAVS,       extract_extradata_mpeg4   },
> >      { AV_CODEC_ID_H264,       extract_extradata_h2645   },
> >      { AV_CODEC_ID_HEVC,       extract_extradata_h2645   },
> > @@ -397,6 +398,7 @@ static void extract_extradata_close(AVBSFContext *ctx)
> >  
> >  static const enum AVCodecID codec_ids[] = {
> >      AV_CODEC_ID_AV1,
> > +    AV_CODEC_ID_AVS2,
> >      AV_CODEC_ID_CAVS,
> >      AV_CODEC_ID_H264,
> >      AV_CODEC_ID_HEVC,
> > 
> 
> Should be ok.

will apply

thx

[...]

Patch hide | download patch | download mbox

diff --git a/libavcodec/extract_extradata_bsf.c b/libavcodec/extract_extradata_bsf.c
index 6deb663..f37427c 100644
--- a/libavcodec/extract_extradata_bsf.c
+++ b/libavcodec/extract_extradata_bsf.c
@@ -331,6 +331,7 @@  static const struct {
                    uint8_t **data, int *size);
 } extract_tab[] = {
     { AV_CODEC_ID_AV1,        extract_extradata_av1     },
+    { AV_CODEC_ID_AVS2,       extract_extradata_mpeg4   },
     { AV_CODEC_ID_CAVS,       extract_extradata_mpeg4   },
     { AV_CODEC_ID_H264,       extract_extradata_h2645   },
     { AV_CODEC_ID_HEVC,       extract_extradata_h2645   },
@@ -397,6 +398,7 @@  static void extract_extradata_close(AVBSFContext *ctx)
 
 static const enum AVCodecID codec_ids[] = {
     AV_CODEC_ID_AV1,
+    AV_CODEC_ID_AVS2,
     AV_CODEC_ID_CAVS,
     AV_CODEC_ID_H264,
     AV_CODEC_ID_HEVC,