void opt_video_device(const char *arg)
{
- video_device = strdup(arg);
+ video_device = av_strdup(arg);
}
void opt_video_channel(const char *arg)
void opt_audio_device(const char *arg)
{
- audio_device = strdup(arg);
+ audio_device = av_strdup(arg);
}
void opt_dv1394(const char *arg)
int argc = 0;
char *argv[64];
int i;
- char *args = strdup(arg);
+ char *args = av_strdup(arg);
argv[0] = strtok(args, " ");
while (argc < 62 && (argv[++argc] = strtok(NULL, " "))) {
}
if (po->flags & OPT_STRING) {
char *str;
- str = strdup(arg);
+ str = av_strdup(arg);
*po->u.str_arg = str;
} else if (po->flags & OPT_BOOL) {
*po->u.int_arg = 1;
codec->qcompress = get_be16(pb) / 10000.0;
codec->qblur = get_be16(pb) / 10000.0;
codec->bit_rate_tolerance = get_be32(pb);
- codec->rc_eq = strdup(get_strz(pb, rc_eq_buf, sizeof(rc_eq_buf)));
+ codec->rc_eq = av_strdup(get_strz(pb, rc_eq_buf, sizeof(rc_eq_buf)));
codec->rc_max_rate = get_be32(pb);
codec->rc_min_rate = get_be32(pb);
codec->rc_buffer_size = get_be32(pb);
ci->debug++;
break;
case 'D':
- ci->dir = strdup(optarg);
+ ci->dir = av_strdup(optarg);
break;
default:
fprintf(stderr, "Unrecognized argument '%s'\n", argv[optind]);
font = optarg;
break;
case 't':
- ci->text = strdup(optarg);
+ ci->text = av_strdup(optarg);
break;
case 'f':
- ci->file = strdup(optarg);
+ ci->file = av_strdup(optarg);
break;
case 'x':
ci->x = atoi(optarg);