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

Showing the changes to doc/examples/transcoding.c (1 of 1 file). Show all

Unified · Split

doc/examples/transcoding.c+1−1
@@ -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)

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