Revision 22a3212e libavformat/output-example.c

View differences:

libavformat/output-example.c
492 492

  
493 493
    /* open the output file, if needed */
494 494
    if (!(fmt->flags & AVFMT_NOFILE)) {
495
        if (url_fopen(&oc->pb, filename, URL_WRONLY) < 0) {
495
        if (avio_open(&oc->pb, filename, URL_WRONLY) < 0) {
496 496
            fprintf(stderr, "Could not open '%s'\n", filename);
497 497
            exit(1);
498 498
        }
......
545 545

  
546 546
    if (!(fmt->flags & AVFMT_NOFILE)) {
547 547
        /* close the output file */
548
        url_fclose(oc->pb);
548
        avio_close(oc->pb);
549 549
    }
550 550

  
551 551
    /* free the stream */

Also available in: Unified diff