Skip to content

Commit

Permalink
tools/uncoded_frame: Use avio_closep() to avoid leaving stale pointer…
Browse files Browse the repository at this point in the history
…s in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
michaelni committed Jan 9, 2015
1 parent ef3a6a4 commit 3233554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/uncoded_frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ int main(int argc, char **argv)
st = &streams[i];
if (st->mux) {
if (st->mux->pb)
avio_close(st->mux->pb);
avio_closep(&st->mux->pb);
avformat_free_context(st->mux);
}
}
Expand Down

0 comments on commit 3233554

Please sign in to comment.