From 6416245eba2eabbde69596db4cc589b1cdfcf093 Mon Sep 17 00:00:00 2001 From: rtogni Date: Wed, 23 Jan 2008 20:48:50 +0000 Subject: [PATCH] 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 --- libmpcodecs/vd_qtvideo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libmpcodecs/vd_qtvideo.c b/libmpcodecs/vd_qtvideo.c index e2671791fe..1d8f405b12 100644 --- a/libmpcodecs/vd_qtvideo.c +++ b/libmpcodecs/vd_qtvideo.c @@ -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