Zero codec_inited in the init() function, so that it's cleared everytime

the codec is inites (previously was only cleared once at start time).
Fixes a crash when -loop n (with n >= 2) is used with a qtvideo codec.

Patch by KO Myung-Hun komh chollian net


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25839 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtogni 2008-01-23 20:48:50 +00:00
parent e9548a5aec
commit 6416245eba
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ static int init(sh_video_t *sh){
CodecInfo cinfo; // for ImageCodecGetCodecInfo()
ImageSubCodecDecompressCapabilities icap; // for ImageCodecInitialize()
codec_inited = 0;
#ifdef MACOSX
EnterMovies();
#else