# HG changeset patch # User ods15 # Date 1140795800 0 # Node ID e735c3f740ba05d6b5b093f75648bcb6f0946754 # Parent 0f314c38ce574cccd428926beb63aae73aa22ad4 Add uninit for audio before switching to next file and completing encode diff -r 0f314c38ce57 -r e735c3f740ba mencoder.c --- a/mencoder.c Fri Feb 24 15:22:59 2006 +0000 +++ b/mencoder.c Fri Feb 24 15:43:20 2006 +0000 @@ -1524,6 +1524,7 @@ sh_video->vfilter = NULL; } + if(sh_audio){ uninit_audio(sh_audio);sh_audio=NULL; } if(sh_video){ uninit_video(sh_video);sh_video=NULL; } if(demuxer) free_demuxer(demuxer); if(stream) free_stream(stream); // kill cache thread @@ -1572,6 +1573,7 @@ mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_AudioStreamResult, (float)(mux_a->size/mux_a->timer*8.0f/1000.0f), (int)(mux_a->size/mux_a->timer), (int)mux_a->size, (float)mux_a->timer); +if(sh_audio){ uninit_audio(sh_audio);sh_audio=NULL; } if(sh_video){ uninit_video(sh_video);sh_video=NULL; } if(demuxer) free_demuxer(demuxer); if(stream) free_stream(stream); // kill cache thread