Author: cwittich
Date: Fri Feb 13 11:14:29 2009
New Revision: 39583
URL:
http://svn.reactos.org/svn/reactos?rev=39583&view=rev
Log:
sync avifil32 with wine 1.1.15
Added:
trunk/reactos/dll/win32/avifil32/avifile_Zh.rc (with props)
Modified:
trunk/reactos/dll/win32/avifil32/acmstream.c
trunk/reactos/dll/win32/avifil32/api.c
trunk/reactos/dll/win32/avifil32/avifile.c
trunk/reactos/dll/win32/avifil32/avifile_Ja.rc
trunk/reactos/dll/win32/avifil32/avifile_Ko.rc
trunk/reactos/dll/win32/avifil32/avifile_Si.rc
trunk/reactos/dll/win32/avifil32/avifile_Uk.rc
trunk/reactos/dll/win32/avifil32/avifile_private.h
trunk/reactos/dll/win32/avifil32/editstream.c
trunk/reactos/dll/win32/avifil32/extrachunk.c
trunk/reactos/dll/win32/avifil32/extrachunk.h
trunk/reactos/dll/win32/avifil32/factory.c
trunk/reactos/dll/win32/avifil32/getframe.c
trunk/reactos/dll/win32/avifil32/icmstream.c
trunk/reactos/dll/win32/avifil32/regsvr.c
trunk/reactos/dll/win32/avifil32/rsrc.rc
trunk/reactos/dll/win32/avifil32/tmpfile.c
trunk/reactos/dll/win32/avifil32/wavfile.c
Modified: trunk/reactos/dll/win32/avifil32/acmstream.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/acmstre…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/acmstream.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/acmstream.c [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2002 Michael Günnewig
+ * Copyright 2002 Michael Günnewig
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Modified: trunk/reactos/dll/win32/avifil32/api.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/api.c?r…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/api.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/api.c [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -1,6 +1,6 @@
/*
* Copyright 1999 Marcus Meissner
- * Copyright 2002-2003 Michael Günnewig
+ * Copyright 2002-2003 Michael Günnewig
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Modified: trunk/reactos/dll/win32/avifil32/avifile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/avifile…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/avifile.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/avifile.c [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -1,6 +1,6 @@
/*
* Copyright 1999 Marcus Meissner
- * Copyright 2002-2003 Michael Günnewig
+ * Copyright 2002-2003 Michael Günnewig
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -217,7 +217,7 @@
static HRESULT AVIFILE_ParseIndex(const IAVIFileImpl *This, AVIINDEXENTRY *lp,
LONG count, DWORD pos, BOOL *bAbsolute);
static HRESULT AVIFILE_ReadBlock(IAVIStreamImpl *This, DWORD start,
- LPVOID buffer, LONG size);
+ LPVOID buffer, DWORD size);
static void AVIFILE_SamplesToBlock(const IAVIStreamImpl *This, LPLONG pos,
LPLONG offset);
static HRESULT AVIFILE_SaveFile(IAVIFileImpl *This);
@@ -931,7 +931,7 @@
{
IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
- LPBITMAPINFOHEADER lpbiNew = (LPBITMAPINFOHEADER)format;
+ LPBITMAPINFOHEADER lpbiNew = format;
TRACE("(%p,%d,%p,%d)\n", iface, pos, format, formatsize);
@@ -976,7 +976,7 @@
return AVIERR_OK;
} else {
MMCKINFO ck;
- LPBITMAPINFOHEADER lpbiOld = (LPBITMAPINFOHEADER)This->lpFormat;
+ LPBITMAPINFOHEADER lpbiOld = This->lpFormat;
RGBQUAD *rgbNew = (RGBQUAD*)((LPBYTE)lpbiNew + lpbiNew->biSize);
AVIPALCHANGE *lppc = NULL;
UINT n;
@@ -1688,7 +1688,7 @@
return AVIERR_MEMORY;
pStream->cbHandlerData = ck.cksize;
- if (mmioRead(This->hmmio, (HPSTR)pStream->lpHandlerData, ck.cksize) !=
ck.cksize)
+ if (mmioRead(This->hmmio, pStream->lpHandlerData, ck.cksize) !=
ck.cksize)
return AVIERR_FILEREAD;
break;
case ckidSTREAMFORMAT:
@@ -1702,11 +1702,11 @@
return AVIERR_MEMORY;
pStream->cbFormat = ck.cksize;
- if (mmioRead(This->hmmio, (HPSTR)pStream->lpFormat, ck.cksize) != ck.cksize)
+ if (mmioRead(This->hmmio, pStream->lpFormat, ck.cksize) != ck.cksize)
return AVIERR_FILEREAD;
if (pStream->sInfo.fccType == streamtypeVIDEO) {
- LPBITMAPINFOHEADER lpbi = (LPBITMAPINFOHEADER)pStream->lpFormat;
+ LPBITMAPINFOHEADER lpbi = pStream->lpFormat;
/* some corrections to the video format */
if (lpbi->biClrUsed == 0 && lpbi->biBitCount <= 8)
@@ -2008,7 +2008,7 @@
}
static HRESULT AVIFILE_ReadBlock(IAVIStreamImpl *This, DWORD pos,
- LPVOID buffer, LONG size)
+ LPVOID buffer, DWORD size)
{
/* pre-conditions */
assert(This != NULL);
@@ -2059,7 +2059,7 @@
} else {
if (mmioSeek(This->paf->hmmio, This->idxFrames[pos].dwChunkOffset + 2 *
sizeof(DWORD), SEEK_SET) == -1)
return AVIERR_FILEREAD;
- if (mmioRead(This->paf->hmmio, (HPSTR)buffer, size) != size)
+ if (mmioRead(This->paf->hmmio, buffer, size) != size)
return AVIERR_FILEREAD;
}
@@ -2206,7 +2206,7 @@
if (mmioCreateChunk(This->hmmio, &ck, 0) != S_OK)
return AVIERR_FILEWRITE;
if (pStream->lpFormat != NULL && ck.cksize > 0) {
- if (mmioWrite(This->hmmio, (HPSTR)pStream->lpFormat, ck.cksize) !=
ck.cksize)
+ if (mmioWrite(This->hmmio, pStream->lpFormat, ck.cksize) != ck.cksize)
return AVIERR_FILEWRITE;
}
if (mmioAscend(This->hmmio, &ck, 0) != S_OK)
@@ -2218,7 +2218,7 @@
ck.cksize = pStream->cbHandlerData;
if (mmioCreateChunk(This->hmmio, &ck, 0) != S_OK)
return AVIERR_FILEWRITE;
- if (mmioWrite(This->hmmio, (HPSTR)pStream->lpHandlerData, ck.cksize) !=
ck.cksize)
+ if (mmioWrite(This->hmmio, pStream->lpHandlerData, ck.cksize) != ck.cksize)
return AVIERR_FILEWRITE;
if (mmioAscend(This->hmmio, &ck, 0) != S_OK)
return AVIERR_FILEWRITE;
@@ -2227,7 +2227,7 @@
/* ... some optional additional extra chunk for this stream ... */
if (pStream->extra.lp != NULL && pStream->extra.cb > 0) {
/* the chunk header(s) are already in the structure */
- if (mmioWrite(This->hmmio, (HPSTR)pStream->extra.lp, pStream->extra.cb) !=
pStream->extra.cb)
+ if (mmioWrite(This->hmmio, pStream->extra.lp, pStream->extra.cb) !=
pStream->extra.cb)
return AVIERR_FILEWRITE;
}
@@ -2302,7 +2302,7 @@
/* write optional extra file chunks */
if (This->fileextra.lp != NULL && This->fileextra.cb > 0) {
/* as for the streams, are the chunk header(s) in the structure */
- if (mmioWrite(This->hmmio, (HPSTR)This->fileextra.lp, This->fileextra.cb) !=
This->fileextra.cb)
+ if (mmioWrite(This->hmmio, This->fileextra.lp, This->fileextra.cb) !=
This->fileextra.cb)
return AVIERR_FILEWRITE;
}
@@ -2562,7 +2562,7 @@
if (mmioCreateChunk(This->paf->hmmio, &ck, 0) != S_OK)
return AVIERR_FILEWRITE;
if (buffer != NULL && size > 0) {
- if (mmioWrite(This->paf->hmmio, (HPSTR)buffer, size) != size)
+ if (mmioWrite(This->paf->hmmio, buffer, size) != size)
return AVIERR_FILEWRITE;
}
if (mmioAscend(This->paf->hmmio, &ck, 0) != S_OK)
Modified: trunk/reactos/dll/win32/avifil32/avifile_Ja.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/avifile…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/avifile_Ja.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/avifile_Ja.rc [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -16,35 +16,40 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+/* UTF-8 */
+#pragma code_page(65001)
+
LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT
IDD_SAVEOPTIONS DIALOG FIXED IMPURE 43, 37, 226, 82
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
-CAPTION "³kIvV"
-FONT 9, "MS UI Gothic"
+CAPTION "å§ç¸®ãªãã·ã§ã³"
+FONT 9, "MS Shell Dlg"
BEGIN
- LTEXT "Xg[ðIð(&C):",-1,2,5,154,10
+ LTEXT "ã¹ããªã¼ã ãé¸æ(&C):",-1,2,5,154,10
COMBOBOX IDC_STREAM,2,18,154,61,CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
- PUSHBUTTON "IvV(&O)...",IDC_OPTIONS,170,17,50,14
- AUTOCHECKBOX
"C^[[u(&I)",IDC_INTERLEAVE,3,42,85,11,WS_TABSTOP
+ PUSHBUTTON "ãªãã·ã§ã³(&O)...",IDC_OPTIONS,170,17,50,14
+ AUTOCHECKBOX
"ã¤ã³ã¿ã¼ãªã¼ã(&I)",IDC_INTERLEAVE,3,42,85,11,WS_TABSTOP
EDITTEXT IDC_INTERLEAVEEVERY,91,41,32,12,ES_AUTOHSCROLL
- LTEXT "t[",-1,129,43,36,9
- LTEXT "»ÝÌtH[}bg:",-1,3,56,73,9
+ LTEXT "ãã¬ã¼ã ",-1,129,43,36,9
+ LTEXT "ç¾å¨ã®ãã©ã¼ããã:",-1,3,56,73,9
LTEXT "This space for rent",IDC_FORMATTEXT,75,56,90,26
DEFPUSHBUTTON "OK",IDOK,170,42,50,14
- PUSHBUTTON "LZ",IDCANCEL,170,61,50,14
+ PUSHBUTTON "ãã£ã³ã»ã«",IDCANCEL,170,61,50,14
END
STRINGTABLE DISCARDABLE
{
- IDS_WAVESTREAMFORMAT "Wavet@C: %s"
- IDS_WAVEFILETYPE "Wavet@C"
- IDS_ALLMULTIMEDIA "SÄÌ}`fBAt@C"
- IDS_ALLFILES "SÄÌt@C (*.*)(a)*.*"
- IDS_VIDEO "rfI"
- IDS_AUDIO "¹º"
+ IDS_WAVESTREAMFORMAT "Waveãã¡ã¤ã«: %s"
+ IDS_WAVEFILETYPE "Waveãã¡ã¤ã«"
+ IDS_ALLMULTIMEDIA "å
¨ã¦ã®ãã«ãã¡ãã£ã¢ãã¡ã¤ã«"
+ IDS_ALLFILES "å
¨ã¦ã®ãã¡ã¤ã« (*.*)(a)*.*"
+ IDS_VIDEO "ãããª"
+ IDS_AUDIO "é³å£°"
IDS_AVISTREAMFORMAT "%s %s #%d"
IDS_AVIFILETYPE "Wine AVI-default-filehandler"
- IDS_UNCOMPRESSED "¢³k"
+ IDS_UNCOMPRESSED "æªå§ç¸®"
}
+
+#pragma code_page(default)
Modified: trunk/reactos/dll/win32/avifil32/avifile_Ko.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/avifile…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/avifile_Ko.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/avifile_Ko.rc [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -17,12 +17,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-LANGUAGE LANG_KOREAN, SUBLANG_NEUTRAL
+LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
IDD_SAVEOPTIONS DIALOG FIXED IMPURE 43, 37, 226, 82
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "¾ÐÃà ¿É¼Ç"
-FONT 8, "MS Shell Dlg"
+FONT 9, "MS Shell Dlg"
BEGIN
LTEXT "½ºÆ®¸² ¼±ÅÃ(&C):",-1,2,5,154,10
COMBOBOX IDC_STREAM,2,18,154,61,CBS_DROPDOWNLIST | WS_VSCROLL |
Modified: trunk/reactos/dll/win32/avifil32/avifile_Si.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/avifile…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/avifile_Si.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/avifile_Si.rc [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -28,7 +28,7 @@
LTEXT "&Izbran tok:",-1,2,5,154,10
COMBOBOX IDC_STREAM,2,18,154,61,CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
- PUSHBUTTON "&Možnosti...",IDC_OPTIONS,170,17,50,14
+ PUSHBUTTON "&Možnosti ...",IDC_OPTIONS,170,17,50,14
AUTOCHECKBOX "&Prepletanje
vsake",IDC_INTERLEAVE,3,42,85,11,WS_TABSTOP
EDITTEXT IDC_INTERLEAVEEVERY,91,41,32,12,ES_AUTOHSCROLL
LTEXT "slike",-1,129,43,36,9
Modified: trunk/reactos/dll/win32/avifil32/avifile_Uk.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/avifile…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/avifile_Uk.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/avifile_Uk.rc [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -1,10 +1,21 @@
/*
- * PROJECT: AVI File support library
- * LICENSE: GPL - See COPYING in the top level directory
- * FILE: dll/win32/avifil32/avifile_Uk.rc
- * PURPOSE: Ukraianian resource file for avifil32
- * TRANSLATOR: Artem Reznikov
+ * Copyright 2007 Artem Reznikov
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
@@ -14,7 +25,7 @@
FONT 8, "MS Shell Dlg"
BEGIN
LTEXT "&Îáåð³òü ïîò³ê:",-1,2,5,114,10
- COMBOBOX IDC_STREAM,2,18,134,61,CBS_DROPDOWNLIST | WS_VSCROLL |
+ COMBOBOX IDC_STREAM,2,18,134,61,CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "Ï&àðàìåòðè...",IDC_OPTIONS,145,17,45,14
AUTOCHECKBOX "&²íòåðâàë
÷åðãóâàííÿ",IDC_INTERLEAVE,3,42,60,11,WS_TABSTOP
Added: trunk/reactos/dll/win32/avifil32/avifile_Zh.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/avifile…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/avifile_Zh.rc (added)
+++ trunk/reactos/dll/win32/avifil32/avifile_Zh.rc [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -1,0 +1,90 @@
+/*
+ * avifile (Simplified and Traditional Chinese Resources)
+ *
+ * Copyright 2008 Hongbo Ni <hongbo.at.njstar.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/* Chinese text is encoded in UTF-8 */
+#pragma code_page(65001)
+
+LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
+
+IDD_SAVEOPTIONS DIALOG FIXED IMPURE 43, 37, 226, 82
+STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
+CAPTION "å缩é项"
+FONT 9, "MS Shell Dlg"
+BEGIN
+ LTEXT "éæ©æ¥æº(&C):",-1,2,5,154,10
+ COMBOBOX IDC_STREAM,2,18,154,61,CBS_DROPDOWNLIST | WS_VSCROLL |
+ WS_TABSTOP
+ PUSHBUTTON "é项(&O)...",IDC_OPTIONS,170,17,50,14
+ AUTOCHECKBOX "交ç»: æ¯",IDC_INTERLEAVE,3,42,85,11,WS_TABSTOP
+ EDITTEXT IDC_INTERLEAVEEVERY,91,41,32,12,ES_AUTOHSCROLL
+ LTEXT "帧æ°",-1,129,43,36,9
+ LTEXT "å½åæ ¼å¼:",-1,3,56,73,9
+ LTEXT "(?)",IDC_FORMATTEXT,75,56,90,26
+ DEFPUSHBUTTON "ç¡®å®",IDOK,170,42,50,14
+ PUSHBUTTON "åæ¶",IDCANCEL,170,61,50,14
+END
+
+STRINGTABLE DISCARDABLE
+{
+ IDS_WAVESTREAMFORMAT "波形: %s"
+ IDS_WAVEFILETYPE "波形"
+ IDS_ALLMULTIMEDIA "ææå¤åªä½æ件"
+ IDS_ALLFILES "æææ件 (*.*)(a)*.*"
+ IDS_VIDEO "è§é¢"
+ IDS_AUDIO "é³é¢"
+ IDS_AVISTREAMFORMAT "%s %s #%d"
+ IDS_AVIFILETYPE "Wine AVI-é»è®¤å¤çå¨"
+ IDS_UNCOMPRESSED "æªå缩"
+}
+
+LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
+
+IDD_SAVEOPTIONS DIALOG FIXED IMPURE 43, 37, 226, 82
+STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
+CAPTION "å£ç¸®é¸é
"
+FONT 9, "MS Shell Dlg"
+BEGIN
+ LTEXT "é¸æä¾æº(&C):",-1,2,5,154,10
+ COMBOBOX IDC_STREAM,2,18,154,61,CBS_DROPDOWNLIST | WS_VSCROLL |
+ WS_TABSTOP
+ PUSHBUTTON "é¸é
(&O)...",IDC_OPTIONS,170,17,50,14
+ AUTOCHECKBOX "交ç¹: æ¯",IDC_INTERLEAVE,3,42,85,11,WS_TABSTOP
+ EDITTEXT IDC_INTERLEAVEEVERY,91,41,32,12,ES_AUTOHSCROLL
+ LTEXT "å¹æ¸",-1,129,43,36,9
+ LTEXT "ç¶åæ ¼å¼:",-1,3,56,73,9
+ LTEXT "(?)",IDC_FORMATTEXT,75,56,90,26
+ DEFPUSHBUTTON "確å®",IDOK,170,42,50,14
+ PUSHBUTTON "åæ¶",IDCANCEL,170,61,50,14
+END
+
+STRINGTABLE DISCARDABLE
+{
+ IDS_WAVESTREAMFORMAT "波形: %s"
+ IDS_WAVEFILETYPE "波形"
+ IDS_ALLMULTIMEDIA "ææå¤åªé«æªæ¡"
+ IDS_ALLFILES "æææªæ¡ (*.*)(a)*.*"
+ IDS_VIDEO "è¦é »"
+ IDS_AUDIO "é³é »"
+ IDS_AVISTREAMFORMAT "%s %s #%d"
+ IDS_AVIFILETYPE "Wine AVI-é»èªèçå¨"
+ IDS_UNCOMPRESSED "æªå£ç¸®"
+}
+
+#pragma code_page(default)
Propchange: trunk/reactos/dll/win32/avifil32/avifile_Zh.rc
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/dll/win32/avifil32/avifile_private.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/avifile…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/avifile_private.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/avifile_private.h [iso-8859-1] Fri Feb 13 11:14:29
2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2002 Michael Günnewig
+ * Copyright 2002 Michael Günnewig
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Modified: trunk/reactos/dll/win32/avifil32/editstream.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/editstr…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/editstream.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/editstream.c [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2003 Michael Günnewig
+ * Copyright 2003 Michael Günnewig
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -261,7 +261,7 @@
if (pg == NULL)
return NULL;
if (This->pg != NULL) {
- if (IGetFrame_SetFormat(pg, This->lpFrame, NULL, 0, 0, -1, -1)) {
+ if (IGetFrame_SetFormat(pg, This->lpFrame, NULL, 0, 0, -1, -1) != S_OK) {
AVIStreamGetFrameClose(pg);
ERR(": IGetFrame_SetFormat failed\n");
return NULL;
@@ -793,7 +793,7 @@
if (asi->dwQuality <= ICQUALITY_HIGH)
This->sInfo.dwQuality = ICQUALITY_HIGH;
CopyRect(&This->sInfo.rcFrame, &asi->rcFrame);
- memcpy(&This->sInfo.szName, &asi->szName, sizeof(asi->szName));
+ memcpy(This->sInfo.szName, asi->szName, sizeof(asi->szName));
This->sInfo.dwEditCount++;
return AVIERR_OK;
@@ -896,7 +896,7 @@
/* map our position to a stream and position in it */
if (AVIFILE_FindStreamInTable(This, pos, &stream, &streamPos,
- &streamNr, TRUE))
+ &streamNr, TRUE) != S_OK)
return -1; /* doesn't exist */
if (This->bDecompress) {
@@ -935,7 +935,7 @@
if (! This->bDecompress)
return IAVIStream_ReadFormat(stream, n, format, fmtsize);
- lp = (LPBITMAPINFOHEADER)AVIFILE_ReadFrame(This, stream, n);
+ lp = AVIFILE_ReadFrame(This, stream, n);
if (lp == NULL)
return AVIERR_ERROR;
if (lp->biBitCount <= 8) {
Modified: trunk/reactos/dll/win32/avifil32/extrachunk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/extrach…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/extrachunk.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/extrachunk.c [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2002 Michael Günnewig
+ * Copyright 2002 Michael Günnewig
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -145,7 +145,7 @@
{
FOURCC ckid;
FOURCC fccType;
- HRESULT hr;
+ MMRESULT mmr;
/* pre-conditions */
assert(extra != NULL);
@@ -171,26 +171,32 @@
TRACE(": find ckid=0x%08X fccType=0x%08X\n", ckid, fccType);
for (;;) {
- hr = mmioDescend(hmmio, lpck, lpckParent, 0);
- if (hr != S_OK) {
+ mmr = mmioDescend(hmmio, lpck, lpckParent, 0);
+ if (mmr != MMSYSERR_NOERROR) {
/* No extra chunks in front of desired chunk? */
- if (flags == 0 && hr == MMIOERR_CHUNKNOTFOUND)
- hr = AVIERR_OK;
- return hr;
+ if (flags == 0 && mmr == MMIOERR_CHUNKNOTFOUND)
+ return AVIERR_OK;
+ else
+ return AVIERR_FILEREAD;
}
/* Have we found what we search for? */
if ((lpck->ckid == ckid) &&
- (fccType == (FOURCC)0 || lpck->fccType == fccType))
+ (fccType == 0 || lpck->fccType == fccType))
return AVIERR_OK;
/* Skip padding chunks, the others put into the extrachunk-structure */
if (lpck->ckid == ckidAVIPADDING ||
lpck->ckid == mmioFOURCC('p','a','d','d'))
- hr = mmioAscend(hmmio, lpck, 0);
+ {
+ mmr = mmioAscend(hmmio, lpck, 0);
+ if (mmr != MMSYSERR_NOERROR) return AVIERR_FILEREAD;
+ }
else
- hr = ReadChunkIntoExtra(extra, hmmio, lpck);
- if (FAILED(hr))
- return hr;
+ {
+ HRESULT hr = ReadChunkIntoExtra(extra, hmmio, lpck);
+ if (FAILED(hr))
+ return hr;
+ }
}
}
Modified: trunk/reactos/dll/win32/avifil32/extrachunk.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/extrach…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/extrachunk.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/extrachunk.h [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2002 Michael Günnewig
+ * Copyright 2002 Michael Günnewig
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Modified: trunk/reactos/dll/win32/avifil32/factory.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/factory…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/factory.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/factory.c [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2002 Michael Günnewig
+ * Copyright 2002 Michael Günnewig
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Modified: trunk/reactos/dll/win32/avifil32/getframe.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/getfram…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/getframe.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/getframe.c [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2003 Michael Günnewig
+ * Copyright 2002-2003 Michael Günnewig
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Modified: trunk/reactos/dll/win32/avifil32/icmstream.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/icmstre…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/icmstream.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/icmstream.c [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2002 Michael Günnewig
+ * Copyright 2002 Michael Günnewig
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -393,7 +393,7 @@
return hr;
}
- lpbi = (LPBITMAPINFOHEADER)AVIStreamGetFrame(This->pg, pos);
+ lpbi = AVIStreamGetFrame(This->pg, pos);
if (lpbi == NULL)
return AVIERR_MEMORY;
@@ -538,7 +538,7 @@
}
} else {
/* format change -- check that's only the palette */
- LPBITMAPINFOHEADER lpbi = (LPBITMAPINFOHEADER)format;
+ LPBITMAPINFOHEADER lpbi = format;
if (lpbi->biSize != This->lpbiInput->biSize ||
lpbi->biWidth != This->lpbiInput->biWidth ||
@@ -611,7 +611,7 @@
/* compress or decompress? */
if (This->hic == NULL) {
/* decompress */
- lpbi = (LPBITMAPINFOHEADER)AVIStreamGetFrame(This->pg, start);
+ lpbi = AVIStreamGetFrame(This->pg, start);
if (lpbi == NULL)
return AVIERR_MEMORY;
@@ -634,7 +634,7 @@
while (start > This->lCurrent) {
HRESULT hr;
- lpbi = (LPBITMAPINFOHEADER)AVIStreamGetFrame(This->pg, ++This->lCurrent);
+ lpbi = AVIStreamGetFrame(This->pg, ++This->lCurrent);
if (lpbi == NULL) {
AVIFILE_Reset(This);
return AVIERR_MEMORY;
@@ -821,14 +821,14 @@
do {
DWORD idxCkid = 0;
- HRESULT hr;
-
- hr = ICCompress(This->hic,icmFlags,This->lpbiCur,This->lpCur,lpbi,lpBits,
- &idxCkid, &idxFlags, This->lCurrent, dwRequest, dwCurQual,
- noPrev ? NULL:This->lpbiPrev, noPrev ? NULL:This->lpPrev);
- if (hr == ICERR_NEWPALETTE) {
+ DWORD res;
+
+ res = ICCompress(This->hic,icmFlags,This->lpbiCur,This->lpCur,lpbi,lpBits,
+ &idxCkid, &idxFlags, This->lCurrent, dwRequest, dwCurQual,
+ noPrev ? NULL:This->lpbiPrev, noPrev ? NULL:This->lpPrev);
+ if (res == ICERR_NEWPALETTE) {
FIXME(": codec has changed palette -- unhandled!\n");
- } else if (hr != ICERR_OK)
+ } else if (res != ICERR_OK)
return AVIERR_COMPRESSOR;
/* need to check for framesize */
@@ -902,7 +902,7 @@
assert(This->lpbiOutput == NULL);
/* get input format */
- lpbi = (LPBITMAPINFOHEADER)AVIStreamGetFrame(This->pg, This->sInfo.dwStart);
+ lpbi = AVIStreamGetFrame(This->pg, This->sInfo.dwStart);
if (lpbi == NULL)
return AVIERR_MEMORY;
Modified: trunk/reactos/dll/win32/avifil32/regsvr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/regsvr.…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/regsvr.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/regsvr.c [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -32,6 +32,7 @@
#include "avifile_private.h"
#include "wine/debug.h"
+#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(avifile);
@@ -158,7 +159,7 @@
KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key;
- wsprintfW(buf, fmt, list->num_methods);
+ sprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR));
Modified: trunk/reactos/dll/win32/avifil32/rsrc.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/rsrc.rc…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/rsrc.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/rsrc.rc [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -57,3 +57,4 @@
#include "avifile_Sv.rc"
#include "avifile_Tr.rc"
#include "avifile_Uk.rc"
+#include "avifile_Zh.rc"
Modified: trunk/reactos/dll/win32/avifil32/tmpfile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/tmpfile…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/tmpfile.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/tmpfile.c [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2003 Michael Günnewig
+ * Copyright 2003 Michael Günnewig
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Modified: trunk/reactos/dll/win32/avifil32/wavfile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/wavfile…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/wavfile.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/wavfile.c [iso-8859-1] Fri Feb 13 11:14:29 2009
@@ -1,5 +1,5 @@
/*
- * Copyright 2002 Michael Günnewig
+ * Copyright 2002 Michael Günnewig
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -908,7 +908,7 @@
if (mmioSeek(This->hmmio, This->ckData.dwDataOffset
+ start * This->sInfo.dwSampleSize, SEEK_SET) == -1)
return AVIERR_FILEREAD;
- if (mmioRead(This->hmmio, (HPSTR)buffer, buffersize) != buffersize)
+ if (mmioRead(This->hmmio, buffer, buffersize) != buffersize)
return AVIERR_FILEREAD;
/* fill out return parameters if given */
@@ -960,7 +960,7 @@
if (mmioSeek(This->hmmio, This->ckData.dwDataOffset +
start * This->sInfo.dwSampleSize, SEEK_SET) == -1)
return AVIERR_FILEWRITE;
- if (mmioWrite(This->hmmio, (HPSTR)buffer, buffersize) != buffersize)
+ if (mmioWrite(This->hmmio, buffer, buffersize) != buffersize)
return AVIERR_FILEWRITE;
This->sInfo.dwLength = max(This->sInfo.dwLength, (DWORD)start + samples);