comparison output-example.c @ 5577:21c98b55a800 libavformat

Replace deprecated guess_format() with av_guess_format(). Patch by Martin Storsj reverse(<ts.nitram@nitram>).
author stefano
date Fri, 22 Jan 2010 23:09:08 +0000
parents 1cdf9bbfbc7f
children e892e44a0b6b
comparison
equal deleted inserted replaced
5576:1a89eae96a27 5577:21c98b55a800
445 445
446 filename = argv[1]; 446 filename = argv[1];
447 447
448 /* auto detect the output format from the name. default is 448 /* auto detect the output format from the name. default is
449 mpeg. */ 449 mpeg. */
450 fmt = guess_format(NULL, filename, NULL); 450 fmt = av_guess_format(NULL, filename, NULL);
451 if (!fmt) { 451 if (!fmt) {
452 printf("Could not deduce output format from file extension: using MPEG.\n"); 452 printf("Could not deduce output format from file extension: using MPEG.\n");
453 fmt = guess_format("mpeg", NULL, NULL); 453 fmt = av_guess_format("mpeg", NULL, NULL);
454 } 454 }
455 if (!fmt) { 455 if (!fmt) {
456 fprintf(stderr, "Could not find suitable output format\n"); 456 fprintf(stderr, "Could not find suitable output format\n");
457 exit(1); 457 exit(1);
458 } 458 }