# HG changeset patch # User rtogni # Date 1201121330 0 # Node ID 75d30197fe2a553016224b1647bb33f571021f05 # Parent 7d81806e92ddaafa731bf07fd743c9e3783c26e3 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 diff -r 7d81806e92dd -r 75d30197fe2a libmpcodecs/vd_qtvideo.c --- a/libmpcodecs/vd_qtvideo.c Wed Jan 23 18:54:14 2008 +0000 +++ b/libmpcodecs/vd_qtvideo.c Wed Jan 23 20:48:50 2008 +0000 @@ -106,6 +106,7 @@ CodecInfo cinfo; // for ImageCodecGetCodecInfo() ImageSubCodecDecompressCapabilities icap; // for ImageCodecInitialize() + codec_inited = 0; #ifdef MACOSX EnterMovies(); #else