Mercurial > mplayer.hg
comparison mencoder.c @ 7497:10d4eec40938
fixed order of uninit (codec, demuxer, stream) - found by Jindrich Makovicka
<makovick@kmlinux.fjfi.cvut.cz>
author | arpi |
---|---|
date | Wed, 25 Sep 2002 20:27:34 +0000 |
parents | 63821051f139 |
children | 6a2b6f3d619c |
comparison
equal
deleted
inserted
replaced
7496:3d35a56799fc | 7497:10d4eec40938 |
---|---|
1202 mencoder_exit(1, NULL); | 1202 mencoder_exit(1, NULL); |
1203 } | 1203 } |
1204 | 1204 |
1205 } // while(!at_eof) | 1205 } // while(!at_eof) |
1206 | 1206 |
1207 if (demuxer) free_demuxer(demuxer); | |
1208 | |
1209 #ifdef HAVE_MP3LAME | 1207 #ifdef HAVE_MP3LAME |
1210 // fixup CBR mp3 audio header: | 1208 // fixup CBR mp3 audio header: |
1211 if(sh_audio && mux_a->codec==ACODEC_VBRMP3 && !lame_param_vbr){ | 1209 if(sh_audio && mux_a->codec==ACODEC_VBRMP3 && !lame_param_vbr){ |
1212 mux_a->h.dwSampleSize=1; | 1210 mux_a->h.dwSampleSize=1; |
1213 ((MPEGLAYER3WAVEFORMAT*)(mux_a->wf))->nBlockSize= | 1211 ((MPEGLAYER3WAVEFORMAT*)(mux_a->wf))->nBlockSize= |
1247 (float)(mux_v->size/mux_v->timer*8.0f/1000.0f), (int)(mux_v->size/mux_v->timer), (int)mux_v->size, (float)mux_v->timer, decoded_frameno); | 1245 (float)(mux_v->size/mux_v->timer*8.0f/1000.0f), (int)(mux_v->size/mux_v->timer), (int)mux_v->size, (float)mux_v->timer, decoded_frameno); |
1248 if(sh_audio) | 1246 if(sh_audio) |
1249 printf(MSGTR_AudioStreamResult, | 1247 printf(MSGTR_AudioStreamResult, |
1250 (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); | 1248 (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); |
1251 | 1249 |
1252 if(sh_video) uninit_video(sh_video); | 1250 if(sh_video){ uninit_video(sh_video);sh_video=NULL; } |
1253 sh_video=NULL; | 1251 if(demuxer) free_demuxer(demuxer); |
1254 if(stream) free_stream(stream); // kill cache thread | 1252 if(stream) free_stream(stream); // kill cache thread |
1255 | 1253 |
1256 return interrupted; | 1254 return interrupted; |
1257 } | 1255 } |
1258 | 1256 |