Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
159e1c5f
Commit
159e1c5f
authored
Jan 26, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite/reader: Add m4v format magic.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1077a5bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
reader.c
dlls/mfreadwrite/reader.c
+2
-0
No files found.
dlls/mfreadwrite/reader.c
View file @
159e1c5f
...
...
@@ -2397,6 +2397,7 @@ static HRESULT bytestream_get_url_hint(IMFByteStream *stream, WCHAR const **url)
static
const
unsigned
char
isommagic
[]
=
{
0x00
,
0x00
,
0x00
,
0x00
,
'f'
,
't'
,
'y'
,
'p'
,
'i'
,
's'
,
'o'
,
'm'
,
0x00
,
0x00
,
0x00
,
0x00
};
static
const
unsigned
char
mp4_magic
[]
=
{
0x00
,
0x00
,
0x00
,
0x00
,
'f'
,
't'
,
'y'
,
'p'
,
'M'
,
'S'
,
'N'
,
'V'
,
0x00
,
0x00
,
0x00
,
0x00
};
static
const
unsigned
char
mp42magic
[]
=
{
0x00
,
0x00
,
0x00
,
0x00
,
'f'
,
't'
,
'y'
,
'p'
,
'm'
,
'p'
,
'4'
,
'2'
,
0x00
,
0x00
,
0x00
,
0x00
};
static
const
unsigned
char
mp4vmagic
[]
=
{
0x00
,
0x00
,
0x00
,
0x00
,
'f'
,
't'
,
'y'
,
'p'
,
'M'
,
'4'
,
'V'
,
' '
,
0x00
,
0x00
,
0x00
,
0x00
};
static
const
unsigned
char
mp4mask
[]
=
{
0x00
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0x00
,
0x00
,
0x00
,
0x00
};
static
const
struct
stream_content_url_hint
{
...
...
@@ -2411,6 +2412,7 @@ static HRESULT bytestream_get_url_hint(IMFByteStream *stream, WCHAR const **url)
{
isommagic
,
L".mp4"
,
mp4mask
},
{
mp42magic
,
L".mp4"
,
mp4mask
},
{
mp4_magic
,
L".mp4"
,
mp4mask
},
{
mp4vmagic
,
L".m4v"
,
mp4mask
},
};
unsigned
char
buffer
[
4
*
sizeof
(
unsigned
int
)],
pattern
[
4
*
sizeof
(
unsigned
int
)];
unsigned
int
i
,
j
,
length
=
0
,
caps
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment