Commit Graph

108 Commits

Author SHA1 Message Date
Esme Povirk bfa143a203 avifil32: Only add the first stream reference to the parent.
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-03 11:21:04 +01:00
Michael Stefaniuc 4ffc5ed5ca avifil32: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-08 10:45:55 +02:00
Alexandre Julliard cdf1e763bf avifil32: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-28 12:06:46 +02:00
Gijs Vermeulen 42a82726ba avifil32: Introduce ARRAY_SIZE macro.
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-21 10:13:55 +01:00
Dmitry Timoshkov 7ee4021694 avifil32: AVIFileGetStream should set stream to NULL in case of an error.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-30 13:05:13 +01:00
Bruno Jesus 175138a42c avifil32: Absolute addresses already point to the correct place in the frame.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-19 20:58:32 +09:00
Bruno Jesus d28c40da3b avifil32: Remove the 1024 frame limit when recording AVI files. 2014-12-31 11:45:00 +01:00
Michael Stefaniuc 4517780988 avifil32: Simplify the check for an empty string (PVS-Studio). 2014-11-13 18:46:39 +09:00
André Hentschel 066fd36ec3 avifil32: Simplify comparing two unsigned ints (PVS-Studio). 2014-11-12 21:11:47 +09:00
Andrey Gusev be367393c9 Assorted typos fixes. 2014-01-13 17:37:42 +01:00
Frédéric Delanoy 4473ce4db9 Assorted spelling fixes. 2013-10-30 09:46:27 +01:00
Michael Stefaniuc 11b21f70ab avifil32: Move the IAVIStream vtbl to avoid forward declarations. 2013-09-03 10:56:10 +02:00
Michael Stefaniuc 555fbc985c avifil32: Basic COM cleanup for the IAVIStream iface. 2013-09-03 10:56:05 +02:00
Michael Stefaniuc 7854cce757 avifil32: Support COM aggregation for AVIFile.
Ref counting bug in QueryInterface comes free of charge!
2013-03-07 14:56:16 +01:00
Michael Stefaniuc 39127a0700 avifil32: Avoid forward declaration of IAVIFile/IPersistFile methods. 2013-03-07 14:56:16 +01:00
Michael Stefaniuc c52d915e2b avifil32: Merge and cleanup the IPersistFile iface. 2013-03-07 14:56:16 +01:00
Michael Stefaniuc 8e6c79b3cc avifil32: COM cleanup for the IAVIFile iface. 2013-03-07 14:56:16 +01:00
Andrew Talbot f2a0f05082 avifil32: Fix use of wrong variable in expression. 2011-09-21 11:35:43 +02:00
Francois Gouget d82c70e511 avifil32: The stream format string cannot really be translated so remove it from the resources. 2011-08-26 16:33:42 +02:00
Julius Schwartzenberg 7401af64e9 avifil32: Use chunksize specified by the chunk itself, avoids a noticable ticking sound heard when reading past the chunk boundary. 2010-01-21 09:05:38 +01:00
Maarten Lankhorst bfe9e6d74c avifile: Fix playback of fixed sample size audio streams. 2010-01-20 15:32:23 +01:00
Julius Schwartzenberg 6a5e443f3f avifil32: Fix header suggested buffersize. 2010-01-14 09:36:55 -06:00
Julius Schwartzenberg cf73a26c6b avifil32: Overwrite dwRate in the audiostream with the nBlockAlign from the wave header. 2010-01-14 09:36:46 -06:00
Henri Verbeet 7ab7103946 avifil32: Don't leak the buffer on HeapReAlloc() failure in AVIFILE_AddFrame().
Perhaps the code should also just double the buffer. I can send another patch
for that if needed.
2010-01-06 09:53:17 +01:00
Henri Verbeet 63aa5418c1 avifil32: Only modify the stream info after a succesful allocation in AVIFILE_AddFrame(). 2010-01-06 09:53:07 +01:00
Henri Verbeet c2051d33d6 avifil32: Properly check the required buffer size in AVIFILE_AddFrame(). 2010-01-06 09:53:02 +01:00
Henri Verbeet 32c3adbbaa avifil32: Always add the format change frame to the buffer in AVIFILE_AddFrame().
It doesn't make sense to only do this when the buffer is resized.
2010-01-06 09:52:57 +01:00
Henri Verbeet c274d6f06e avifil32: Don't leak the buffer on HeapReAlloc() failure in AVIFILE_ReadBlock(). 2010-01-05 12:19:25 +01:00
Henri Verbeet 1fb72a37eb avifil32: Just assign maxSize to This->cbBuffer in AVIFILE_ReadBlock(). 2010-01-05 12:19:22 +01:00
Henri Verbeet 4c36e12be6 avifil32: Properly check the required buffer size in AVIFILE_ReadBlock(). 2010-01-05 12:19:18 +01:00
Andrew Talbot e281b0935b avifil32: Constify a variable. 2009-05-25 11:21:54 +02:00
Michael Stefaniuc 905ff8fdaa avifil32: Remove superfluous pointer casts. 2009-01-27 14:26:43 +01:00
Alexandre Julliard 4f324b3a4b avifil32: Convert source files to utf-8. 2008-10-18 19:19:02 +02:00
Gerald Pfeifer 61de0f4118 avifil32: Make size parameter of AVIFILE_ReadBlock DWORD instead of LONG. 2008-07-22 15:25:13 +02:00
Rob Shearman 89a2eab3f4 avifil32: Pass the number of characters to LoadStringW, not the number of bytes. 2008-02-15 09:53:07 +01:00
Andrew Talbot 292fd135e5 avifil32: Assign to structs instead of using memcpy. 2008-02-12 22:35:56 +01:00
Austin English f6caf1be81 Misc spelling fixes. 2008-01-18 12:51:08 +01:00
Andrew Talbot ff92404dec avifil32: Remove unneeded casts. 2007-12-31 17:41:29 +01:00
Andrew Talbot 3d61013e7c avifil32: Fix some memory leaks. 2007-09-13 10:54:54 +02:00
Andrew Talbot b01c2c8ae5 avifil32: Constify some variables. 2007-04-03 11:22:44 +02:00
Francois Gouget 9fe4673347 Don't include windows.h & co in the Wine sources.
Remove uneeded COM_NO_WINDOWS_H defines.
2006-10-24 17:47:09 +02:00
Michael Stefaniuc f041a2b056 avifil32: Win64 printf format warning fixes. 2006-10-10 11:56:49 +02:00
Michael Stefaniuc fee72b607a Yet another round of redundant NULL checks before HeapFree. 2006-06-13 11:40:23 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Michael Stefaniuc a87520036f janitorial: Remove redundant NULL pointer checks before HeapFree'ing them.
Some HeapFree's are hidden behind macros. Found by smatch.
2006-05-10 11:31:41 +02:00
Mike McCormack aebc88d54b avifil32: Fix a regression caused by patch removing GlobalAllocs by using HEAP_ZERO_INIT. 2006-04-11 14:19:13 +02:00
Mike McCormack 417067bb0d avifil32: Use HeapAlloc instead of GlobalAlloc. Eliminate windowsx.h. 2006-03-18 18:04:39 +01:00
Mike McCormack 9d5b2ea5a2 avifil32: Use HeapAlloc instead of LocalAlloc. 2006-03-13 13:31:00 +01:00
Mike McCormack 29212d8afd avifil32: Use CoTaskMemAlloc when allocating memory to return through
an OLE interface.
2006-03-10 21:42:49 +01:00
Mike McCormack 610fc08e8d avifil32: Fix some gcc 4.1 warnings cause by windowsx.h macros. 2006-03-10 21:42:29 +01:00