diff --git a/output_example.c b/output_example.c index 636ad6ee40..365a35e156 100644 --- a/output_example.c +++ b/output_example.c @@ -512,6 +512,7 @@ int main(int argc, char **argv) /* free the streams */ for(i = 0; i < oc->nb_streams; i++) { + av_freep(&oc->streams[i]->codec); av_freep(&oc->streams[i]); }