demux: fix segmentation fault with avformat_close_input
authorKarthik Ramanan <a0393906@ti.com>
Tue, 24 May 2016 11:44:43 +0000 (17:14 +0530)
committerKarthik Ramanan <a0393906@ti.com>
Tue, 24 May 2016 11:44:43 +0000 (17:14 +0530)
Signed-off-by: Karthik Ramanan <a0393906@ti.com>
util/demux.c

index a77bbb8746ceed6e9fe571928bd4f56ba5c4bd1d..a3bff6bff1e00c2ec5c8f326c39e4987d1cb1f69 100644 (file)
@@ -230,7 +230,7 @@ int demux_rewind(struct demux *demux)
 
 void demux_deinit(struct demux *demux)
 {
-       avformat_close_input(demux->afc);
+       avformat_close_input(&demux->afc);
        if (demux->bsf)
                av_bitstream_filter_close(demux->bsf);
        free(demux->esds.data);