summaryrefslogtreecommitdiffstats
path: root/demux/demux.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-29 14:54:44 +0200
committerwm4 <wm4@nowhere>2013-05-29 14:57:05 +0200
commitfa75ae96e1b2bc0d689a957d4c522002965c4eb2 (patch)
treec15b76c63fc3091c48ca6657afefe07cfd7f57b2 /demux/demux.c
parenta21cfddaabd84589b6cfc9a363a4e282575016b9 (diff)
downloadmpv-fa75ae96e1b2bc0d689a957d4c522002965c4eb2.tar.bz2
mpv-fa75ae96e1b2bc0d689a957d4c522002965c4eb2.tar.xz
demux_asf: fix after commit 5165e19
This demuxer reallocated packets on its own, instead of using the demux.c functions, which clashed with a recent change.
Diffstat (limited to 'demux/demux.c')
-rw-r--r--demux/demux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/demux/demux.c b/demux/demux.c
index c379ee4736..856951f905 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -742,8 +742,7 @@ void ds_free_packs(demux_stream_t *ds)
}
if (ds->asf_packet) {
// free unfinished .asf fragments:
- free(ds->asf_packet->buffer);
- free(ds->asf_packet);
+ free_demux_packet(ds->asf_packet);
ds->asf_packet = NULL;
}
ds->first = ds->last = NULL;