qsvenc_hevc: fix enum declaration
authorAnton Khirnov <anton@khirnov.net>
Tue, 21 Jul 2015 17:43:34 +0000 (19:43 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sat, 25 Jul 2015 15:24:03 +0000 (17:24 +0200)
Declare a named enum, not a variable with anonymous enum type.

libavcodec/qsvenc_hevc.c

index 7ef706b..0efb794 100644 (file)
 #include "qsv_internal.h"
 #include "qsvenc.h"
 
-enum {
+enum LoadPlugin {
     LOAD_PLUGIN_NONE,
     LOAD_PLUGIN_HEVC_SW,
     LOAD_PLUGIN_HEVC_HW,
-} LoadPlugin;
+};
 
 typedef struct QSVHEVCEncContext {
     AVClass *class;