mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
use av_strdup()
Originally committed as revision 1507 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
+1
-1
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user