On Fri, 7 Jul 2017 08:51:51 +0800 Jun Zhao <mypopy...@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. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel