OSDN Git Service

lavf: dealloc private options in av_write_trailer
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 12 Dec 2011 17:22:22 +0000 (18:22 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 13 Dec 2011 16:03:08 +0000 (17:03 +0100)
Fix the iformat/oformat typo.

libavformat/utils.c

index a078d9c..f424285 100644 (file)
@@ -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;