History

doc/examples/transcoding: Use avio_closep() in examples as it avoids leaving stale pointers

Michael Niedermayer committed 11 years ago

Commit a85f0331 parent a63c17c1 file · +1 −1Browse files

Unified · Split

doc/examples/transcoding.c+1−1
@@ -573,7 +573,7 @@ end: · 572 unmodified lines
573573 av_free(filter_ctx);
574574 avformat_close_input(&ifmt_ctx);
575575 if (ofmt_ctx && !(ofmt_ctx->oformat->flags & AVFMT_NOFILE))
576− avio_close(ofmt_ctx->pb);
576+ avio_closep(&ofmt_ctx->pb);
577577 avformat_free_context(ofmt_ctx);
578578
579579 if (ret < 0)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t