Showing the changes to doc/examples/transcoding.c (1 of 1 file). Show all
Unified · Split
| @@ -573,7 +573,7 @@ end: · 572 unmodified lines | |||
| 573 | av_free(filter_ctx); | 573 | av_free(filter_ctx); |
| 574 | avformat_close_input(&ifmt_ctx); | 574 | avformat_close_input(&ifmt_ctx); |
| 575 | if (ofmt_ctx && !(ofmt_ctx->oformat->flags & AVFMT_NOFILE)) | 575 | if (ofmt_ctx && !(ofmt_ctx->oformat->flags & AVFMT_NOFILE)) |
| 576 | avio_close(ofmt_ctx->pb); | 576 | avio_closep(&ofmt_ctx->pb); |
| 577 | avformat_free_context(ofmt_ctx); | 577 | avformat_free_context(ofmt_ctx); |
| 578 | 578 | ||
| 579 | if (ret < 0) | 579 | if (ret < 0) |