[FFmpeg-cvslog] lavf: dealloc private options in av_write_trailer

Luca Barbato git at videolan.org
Tue Dec 13 23:33:45 CET 2011


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Mon Dec 12 18:22:22 2011 +0100| [4badb386cee42569e2e1a1c6981a33c065ebf2de] | committer: Luca Barbato

lavf: dealloc private options in av_write_trailer

Fix the iformat/oformat typo.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4badb386cee42569e2e1a1c6981a33c065ebf2de
---

 libavformat/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index a078d9c..f424285 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3261,7 +3261,7 @@ fail:
         av_freep(&s->streams[i]->priv_data);
         av_freep(&s->streams[i]->index_entries);
     }
-    if (s->iformat && s->iformat->priv_class)
+    if (s->oformat->priv_class)
         av_opt_free(s->priv_data);
     av_freep(&s->priv_data);
     return ret;



More information about the ffmpeg-cvslog mailing list