Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
ced16237
Commit
ced16237
authored
Apr 03, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codec: tx3g: missing braces
refs
c3c6e9b8
parent
2f966bd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
modules/codec/substx3g.c
modules/codec/substx3g.c
+8
-3
No files found.
modules/codec/substx3g.c
View file @
ced16237
...
@@ -262,12 +262,17 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
...
@@ -262,12 +262,17 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
if
(
i_psz_bytelength
>
2
&&
if
(
i_psz_bytelength
>
2
&&
(
!
memcmp
(
p_pszstart
,
"
\xFE\xFF
"
,
2
)
||
!
memcmp
(
p_pszstart
,
"
\xFF\xFE
"
,
2
)
)
(
!
memcmp
(
p_pszstart
,
"
\xFE\xFF
"
,
2
)
||
!
memcmp
(
p_pszstart
,
"
\xFF\xFE
"
,
2
)
)
)
)
{
psz_subtitle
=
FromCharset
(
"UTF-16"
,
p_pszstart
,
i_psz_bytelength
);
psz_subtitle
=
FromCharset
(
"UTF-16"
,
p_pszstart
,
i_psz_bytelength
);
if
(
!
psz_subtitle
)
return
NULL
;
}
else
else
{
psz_subtitle
=
malloc
(
i_psz_bytelength
+
1
);
psz_subtitle
=
malloc
(
i_psz_bytelength
+
1
);
if
(
!
psz_subtitle
)
return
NULL
;
if
(
!
psz_subtitle
)
return
NULL
;
memcpy
(
psz_subtitle
,
p_pszstart
,
i_psz_bytelength
);
memcpy
(
psz_subtitle
,
p_pszstart
,
i_psz_bytelength
);
psz_subtitle
[
i_psz_bytelength
]
=
'\0'
;
psz_subtitle
[
i_psz_bytelength
]
=
'\0'
;
}
p_buf
+=
i_psz_bytelength
+
sizeof
(
uint16_t
);
p_buf
+=
i_psz_bytelength
+
sizeof
(
uint16_t
);
for
(
uint16_t
i
=
0
;
i
<
i_psz_bytelength
;
i
++
)
for
(
uint16_t
i
=
0
;
i
<
i_psz_bytelength
;
i
++
)
...
...
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