mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 06:52:35 +01:00
Fixed possible crash when importing vobsub from mkv files - thx Ile :)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1312 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
424cf3deab
commit
b82c7c452c
@ -7196,9 +7196,9 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
|
|
||||||
public static void CopyStream(System.IO.Stream input, System.IO.Stream output)
|
public static void CopyStream(System.IO.Stream input, System.IO.Stream output)
|
||||||
{
|
{
|
||||||
byte[] buffer = new byte[2000];
|
byte[] buffer = new byte[128000];
|
||||||
int len;
|
int len;
|
||||||
while ((len = input.Read(buffer, 0, 2000)) > 0)
|
while ((len = input.Read(buffer, 0, 128000)) > 0)
|
||||||
{
|
{
|
||||||
output.Write(buffer, 0, len);
|
output.Write(buffer, 0, len);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user