Vignesh Venkatasubramanian <vigneshv <at> google.com> writes: > >> + oc->streams = NULL; > >> + oc->nb_streams = 0; > >> + avformat_free_context(oc); > > > > The first two seem unnecessary if you call > > avformat_free_context(). > > The first two lines are intentional. Sorry about the comment;-) Carl Eugen