Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
4b073399
Commit
4b073399
authored
Apr 13, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AVI: use Windows ANSI code page rather than ISO 8859-1 (fixes #4678)
parent
53aeaf92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+8
-3
No files found.
modules/demux/avi/avi.c
View file @
4b073399
...
...
@@ -90,6 +90,11 @@ static int Demux_UnSeekable( demux_t * );
#define __ABS( x ) ( (x) < 0 ? (-(x)) : (x) )
static
char
*
FromACP
(
const
char
*
str
)
{
return
FromCharset
(
vlc_pgettext
(
"GetACP"
,
"CP1252"
),
str
,
strlen
(
str
));
}
typedef
struct
{
vlc_fourcc_t
i_fourcc
;
...
...
@@ -592,7 +597,7 @@ static int Open( vlc_object_t * p_this )
continue
;
}
if
(
p_strn
)
fmt
.
psz_description
=
From
Latin1
(
p_strn
->
p_str
);
fmt
.
psz_description
=
From
ACP
(
p_strn
->
p_str
);
if
(
tk
->
p_out_muxed
==
NULL
)
tk
->
p_es
=
es_out_Add
(
p_demux
->
out
,
&
fmt
);
TAB_APPEND
(
p_sys
->
i_track
,
p_sys
->
track
,
tk
);
...
...
@@ -2494,7 +2499,7 @@ static void AVI_MetaLoad( demux_t *p_demux,
avi_chunk_STRING_t
*
p_strz
=
AVI_ChunkFind
(
p_info
,
p_dsc
[
i
].
i_id
,
0
);
if
(
!
p_strz
)
continue
;
char
*
psz_value
=
From
Latin1
(
p_strz
->
p_str
);
char
*
psz_value
=
From
ACP
(
p_strz
->
p_str
);
if
(
!
psz_value
)
continue
;
...
...
@@ -2609,7 +2614,7 @@ static void AVI_ExtractSubtitle( demux_t *p_demux,
i_size
-=
6
;
if
(
!
psz_description
)
psz_description
=
p_strn
?
From
Latin1
(
p_strn
->
p_str
)
:
NULL
;
psz_description
=
p_strn
?
From
ACP
(
p_strn
->
p_str
)
:
NULL
;
char
*
psz_name
;
if
(
asprintf
(
&
psz_name
,
"subtitle%d.srt"
,
p_sys
->
i_attachment
)
<=
0
)
psz_name
=
NULL
;
...
...
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