Browse Source

fix memleak, based upon a patch by Wolfram Gloger

Originally committed as revision 4947 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 20 years ago
parent
commit
8720de5b76
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      output_example.c

+ 1
- 0
output_example.c View File

@@ -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]);
}



Loading…
Cancel
Save