use av_strdup()

Originally committed as revision 1507 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Fabrice Bellard
2003-01-23 23:34:29 +00:00
parent 0d4c587854
commit e9a9e0c210
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ int Configure(void **ctxp, int argc, char *argv[])
ci->debug++;
break;
case 'D':
ci->dir = strdup(optarg);
ci->dir = av_strdup(optarg);
break;
default:
fprintf(stderr, "Unrecognized argument '%s'\n", argv[optind]);
+2 -2
View File
@@ -112,10 +112,10 @@ int Configure(void **ctxp, int argc, char *argv[])
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);