mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 03:06:28 +01:00
Add uninit to the avi demuxer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6817 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6ce6f1d587
commit
419943f3c7
@ -726,4 +726,13 @@ void demux_seek_avi(demuxer_t *demuxer,float rel_seek_secs,int flags){
|
||||
}
|
||||
|
||||
|
||||
void demux_close_avi(demuxer_t *demuxer) {
|
||||
avi_priv_t* priv=demuxer->priv;
|
||||
|
||||
if(!priv)
|
||||
return;
|
||||
|
||||
if(priv->idx_size > 0)
|
||||
free(priv->idx);
|
||||
free(priv);
|
||||
}
|
||||
|
@ -149,6 +149,7 @@ extern void demux_close_nuv(demuxer_t* demuxer);
|
||||
extern void demux_close_audio(demuxer_t* demuxer);
|
||||
extern void demux_close_ogg(demuxer_t* demuxer);
|
||||
extern void demux_close_demuxers(demuxer_t* demuxer);
|
||||
extern void demux_close_avi(demuxer_t *demuxer);
|
||||
|
||||
void free_demuxer(demuxer_t *demuxer){
|
||||
int i;
|
||||
@ -178,6 +179,10 @@ void free_demuxer(demuxer_t *demuxer){
|
||||
demux_close_ogg(demuxer); break;
|
||||
case DEMUXER_TYPE_DEMUXERS:
|
||||
demux_close_demuxers(demuxer); return;
|
||||
case DEMUXER_TYPE_AVI:
|
||||
case DEMUXER_TYPE_AVI_NI:
|
||||
case DEMUXER_TYPE_AVI_NINI:
|
||||
demux_close_avi(demuxer); return;
|
||||
}
|
||||
// free streams:
|
||||
for(i=0;i<256;i++){
|
||||
|
Loading…
Reference in New Issue
Block a user