[FFmpeg-devel] [PATCH v2 1/2] lavu: Add DRM hwcontext

wm4 nfxjfg at googlemail.com
Fri Jul 7 11:11:54 EEST 2017


On Fri, 7 Jul 2017 08:51:51 +0800
Jun Zhao <mypopydev at gmail.com> wrote:

> On 2017/7/6 7:02, Mark Thompson wrote:

> > diff --git a/libavutil/hwcontext.h b/libavutil/hwcontext.h
> > index edf12cc631..fe7613b379 100644
> > --- a/libavutil/hwcontext.h
> > +++ b/libavutil/hwcontext.h
> > @@ -32,6 +32,7 @@ enum AVHWDeviceType {
> >      AV_HWDEVICE_TYPE_QSV,
> >      AV_HWDEVICE_TYPE_VIDEOTOOLBOX,
> >      AV_HWDEVICE_TYPE_NONE,
> > +    AV_HWDEVICE_TYPE_DRM,
> >  };  
> 
> AV_HWDEVICE_TYPE_DRM = AV_HWDEVICE_TYPE_NONE + 1  ? 

Yes, for ABI reasons. AV_HWDEVICE_TYPE_NONE should really be 0 and on
the beginning of the enum, but we can fix that only on the next ABI
bump.


More information about the ffmpeg-devel mailing list