diff mbox

[FFmpeg-devel] avcodec/vda: define av_vda_default_init2 when CONFIG_H264_VDA_HWACCEL equ 0

Message ID 20161012093651.9473-1-lq@chinaffmpeg.org
State Accepted
Commit 4d92bd3ca2252b461b352bc2af3ebeabe5394715
Headers show

Commit Message

Liu Steven Oct. 12, 2016, 9:36 a.m. UTC
on OSX:
../configure --disable-everything --enable-demuxer=hls make
error message: Undefined symbols for architecture x86_64:
"_av_vda_default_init2", referenced from:_videotoolbox_init in
ffmpeg_videotoolbox.o
so add av_vda_default_init2 when CONFIG_H264_VDA_HWACCEL=0

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavcodec/vda.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Comments

Steven Liu Oct. 13, 2016, 12:57 p.m. UTC | #1
ping

2016-10-12 17:36 GMT+08:00 Steven Liu <lq@chinaffmpeg.org>:

> on OSX:
> ../configure --disable-everything --enable-demuxer=hls make
> error message: Undefined symbols for architecture x86_64:
> "_av_vda_default_init2", referenced from:_videotoolbox_init in
> ffmpeg_videotoolbox.o
> so add av_vda_default_init2 when CONFIG_H264_VDA_HWACCEL=0
>
> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
> ---
>  libavcodec/vda.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/libavcodec/vda.c b/libavcodec/vda.c
> index 4670140..819ae03 100644
> --- a/libavcodec/vda.c
> +++ b/libavcodec/vda.c
> @@ -73,6 +73,11 @@ int av_vda_default_init(AVCodecContext *avctx)
>      return AVERROR(ENOSYS);
>  }
>
> +int av_vda_default_init2(AVCodecContext *avctx, AVVDAContext *vdactx)
> +{
> +    return AVERROR(ENOSYS);
> +}
> +
>  void av_vda_default_free(AVCodecContext *ctx)
>  {
>  }
> --
> 1.7.1
>
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
wm4 Oct. 14, 2016, 10:01 p.m. UTC | #2
On Thu, 13 Oct 2016 20:57:07 +0800
Steven Liu <lingjiujianke@gmail.com> wrote:

> ping
> 
> 2016-10-12 17:36 GMT+08:00 Steven Liu <lq@chinaffmpeg.org>:
> 
> > on OSX:
> > ../configure --disable-everything --enable-demuxer=hls make
> > error message: Undefined symbols for architecture x86_64:
> > "_av_vda_default_init2", referenced from:_videotoolbox_init in
> > ffmpeg_videotoolbox.o
> > so add av_vda_default_init2 when CONFIG_H264_VDA_HWACCEL=0
> >
> > Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
> > ---
> >  libavcodec/vda.c |    5 +++++
> >  1 files changed, 5 insertions(+), 0 deletions(-)
> >
> > diff --git a/libavcodec/vda.c b/libavcodec/vda.c
> > index 4670140..819ae03 100644
> > --- a/libavcodec/vda.c
> > +++ b/libavcodec/vda.c
> > @@ -73,6 +73,11 @@ int av_vda_default_init(AVCodecContext *avctx)
> >      return AVERROR(ENOSYS);
> >  }
> >
> > +int av_vda_default_init2(AVCodecContext *avctx, AVVDAContext *vdactx)
> > +{
> > +    return AVERROR(ENOSYS);
> > +}
> > +
> >  void av_vda_default_free(AVCodecContext *ctx)
> >  {
> >  }
> > --
> > 1.7.1
> >
> >
> >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel@ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >  
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Patch ok, but I can't push for a while (and I'm not VDA maintainer).
Steven Liu Oct. 17, 2016, 8:01 a.m. UTC | #3
ping Xidorn Quan

2016-10-15 6:01 GMT+08:00 wm4 <nfxjfg@googlemail.com>:

> On Thu, 13 Oct 2016 20:57:07 +0800
> Steven Liu <lingjiujianke@gmail.com> wrote:
>
> > ping
> >
> > 2016-10-12 17:36 GMT+08:00 Steven Liu <lq@chinaffmpeg.org>:
> >
> > > on OSX:
> > > ../configure --disable-everything --enable-demuxer=hls make
> > > error message: Undefined symbols for architecture x86_64:
> > > "_av_vda_default_init2", referenced from:_videotoolbox_init in
> > > ffmpeg_videotoolbox.o
> > > so add av_vda_default_init2 when CONFIG_H264_VDA_HWACCEL=0
> > >
> > > Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
> > > ---
> > >  libavcodec/vda.c |    5 +++++
> > >  1 files changed, 5 insertions(+), 0 deletions(-)
> > >
> > > diff --git a/libavcodec/vda.c b/libavcodec/vda.c
> > > index 4670140..819ae03 100644
> > > --- a/libavcodec/vda.c
> > > +++ b/libavcodec/vda.c
> > > @@ -73,6 +73,11 @@ int av_vda_default_init(AVCodecContext *avctx)
> > >      return AVERROR(ENOSYS);
> > >  }
> > >
> > > +int av_vda_default_init2(AVCodecContext *avctx, AVVDAContext *vdactx)
> > > +{
> > > +    return AVERROR(ENOSYS);
> > > +}
> > > +
> > >  void av_vda_default_free(AVCodecContext *ctx)
> > >  {
> > >  }
> > > --
> > > 1.7.1
> > >
> > >
> > >
> > > _______________________________________________
> > > ffmpeg-devel mailing list
> > > ffmpeg-devel@ffmpeg.org
> > > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> > >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel@ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> Patch ok, but I can't push for a while (and I'm not VDA maintainer).
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
Xidorn Quan Oct. 17, 2016, 1:14 p.m. UTC | #4
This isn't maintained by me. You should probaby ping Sebastien Zwickert <
dilaroga@free.fr>.

But this change looks trivial, so I think it is fine.

- Xidorn

On Mon, Oct 17, 2016 at 7:01 PM, Steven Liu <lingjiujianke@gmail.com> wrote:

> ping Xidorn Quan
>
> 2016-10-15 6:01 GMT+08:00 wm4 <nfxjfg@googlemail.com>:
>
>> On Thu, 13 Oct 2016 20:57:07 +0800
>> Steven Liu <lingjiujianke@gmail.com> wrote:
>>
>> > ping
>> >
>> > 2016-10-12 17:36 GMT+08:00 Steven Liu <lq@chinaffmpeg.org>:
>> >
>> > > on OSX:
>> > > ../configure --disable-everything --enable-demuxer=hls make
>> > > error message: Undefined symbols for architecture x86_64:
>> > > "_av_vda_default_init2", referenced from:_videotoolbox_init in
>> > > ffmpeg_videotoolbox.o
>> > > so add av_vda_default_init2 when CONFIG_H264_VDA_HWACCEL=0
>> > >
>> > > Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
>> > > ---
>> > >  libavcodec/vda.c |    5 +++++
>> > >  1 files changed, 5 insertions(+), 0 deletions(-)
>> > >
>> > > diff --git a/libavcodec/vda.c b/libavcodec/vda.c
>> > > index 4670140..819ae03 100644
>> > > --- a/libavcodec/vda.c
>> > > +++ b/libavcodec/vda.c
>> > > @@ -73,6 +73,11 @@ int av_vda_default_init(AVCodecContext *avctx)
>> > >      return AVERROR(ENOSYS);
>> > >  }
>> > >
>> > > +int av_vda_default_init2(AVCodecContext *avctx, AVVDAContext
>> *vdactx)
>> > > +{
>> > > +    return AVERROR(ENOSYS);
>> > > +}
>> > > +
>> > >  void av_vda_default_free(AVCodecContext *ctx)
>> > >  {
>> > >  }
>> > > --
>> > > 1.7.1
>> > >
>> > >
>> > >
>> > > _______________________________________________
>> > > ffmpeg-devel mailing list
>> > > ffmpeg-devel@ffmpeg.org
>> > > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>> > >
>> > _______________________________________________
>> > ffmpeg-devel mailing list
>> > ffmpeg-devel@ffmpeg.org
>> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>> Patch ok, but I can't push for a while (and I'm not VDA maintainer).
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel@ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>
>
Michael Niedermayer Oct. 21, 2016, 3:11 p.m. UTC | #5
On Tue, Oct 18, 2016 at 12:14:56AM +1100, Xidorn Quan wrote:
> This isn't maintained by me. You should probaby ping Sebastien Zwickert <
> dilaroga@free.fr>.
> 
> But this change looks trivial, so I think it is fine.

applied

thx

[...]
diff mbox

Patch

diff --git a/libavcodec/vda.c b/libavcodec/vda.c
index 4670140..819ae03 100644
--- a/libavcodec/vda.c
+++ b/libavcodec/vda.c
@@ -73,6 +73,11 @@  int av_vda_default_init(AVCodecContext *avctx)
     return AVERROR(ENOSYS);
 }
 
+int av_vda_default_init2(AVCodecContext *avctx, AVVDAContext *vdactx)
+{
+    return AVERROR(ENOSYS);
+}
+
 void av_vda_default_free(AVCodecContext *ctx)
 {
 }