ffmpeg_hw: Mark some strings as const

pull/315/head
Mark Thompson 6 years ago
parent 909bcedc58
commit 1f8b36329f
  1. 2
      fftools/ffmpeg.h
  2. 2
      fftools/ffmpeg_hw.c

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

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

Loading…
Cancel
Save