[xiph-commits] r13910 - trunk/theora/examples
tterribe at svn.xiph.org
tterribe at svn.xiph.org
Thu Sep 27 18:37:19 PDT 2007
Author: tterribe
Date: 2007-09-27 18:37:19 -0700 (Thu, 27 Sep 2007)
New Revision: 13910
Modified:
trunk/theora/examples/dump_video.c
Log:
Make dump_video actually respect -o for files other than "-".
Modified: trunk/theora/examples/dump_video.c
===================================================================
--- trunk/theora/examples/dump_video.c 2007-09-28 01:36:41 UTC (rev 13909)
+++ trunk/theora/examples/dump_video.c 2007-09-28 01:37:19 UTC (rev 13910)
@@ -188,7 +188,7 @@
while((c=getopt_long(argc,argv,optstring,options,&long_option_index))!=EOF){
switch(c){
case 'o':
- if(!strcmp(optarg,"-")){
+ if(strcmp(optarg,"-")!=0){
outfile=fopen(optarg,"wb");
if(outfile==NULL){
fprintf(stderr,"Unable to open output file '%s'\n", optarg);
More information about the commits
mailing list