ffmpeg_hw: Mark some strings as const

This commit is contained in:
Mark Thompson 2019-05-06 15:29:01 +01:00
parent 909bcedc58
commit 1f8b36329f
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ typedef struct HWAccel {
} HWAccel; } HWAccel;
typedef struct HWDevice { typedef struct HWDevice {
char *name; const char *name;
enum AVHWDeviceType type; enum AVHWDeviceType type;
AVBufferRef *device_ref; AVBufferRef *device_ref;
} HWDevice; } HWDevice;

View File

@ -99,7 +99,7 @@ int hw_device_init_from_string(const char *arg, HWDevice **dev_out)
// -> av_hwdevice_ctx_create_derived() // -> av_hwdevice_ctx_create_derived()
AVDictionary *options = NULL; AVDictionary *options = NULL;
char *type_name = NULL, *name = NULL, *device = NULL; const char *type_name = NULL, *name = NULL, *device = NULL;
enum AVHWDeviceType type; enum AVHWDeviceType type;
HWDevice *dev, *src; HWDevice *dev, *src;
AVBufferRef *device_ref = NULL; AVBufferRef *device_ref = NULL;