Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
0ef4dd59
Commit
0ef4dd59
authored
Jan 29, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* asf : more sanity check for broken files.
parent
d8501c54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
modules/demux/asf/asf.c
modules/demux/asf/asf.c
+20
-4
No files found.
modules/demux/asf/asf.c
View file @
0ef4dd59
...
...
@@ -2,7 +2,7 @@
* asf.c : ASFv01 file input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: asf.c,v 1.1
8 2003/01/25 16:58
:34 fenrir Exp $
* $Id: asf.c,v 1.1
9 2003/01/29 21:54
:34 fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -464,9 +464,9 @@ static int DemuxPacket( input_thread_t *p_input, vlc_bool_t b_play_audio )
/* *** parse error correction if present *** */
if
(
p_peek
[
0
]
&
0x80
)
{
int
i_error_correction_length_type
;
int
i_error_correction_data_length
;
int
i_opaque_data_present
;
unsigned
int
i_error_correction_length_type
;
unsigned
int
i_error_correction_data_length
;
unsigned
int
i_opaque_data_present
;
i_error_correction_data_length
=
p_peek
[
0
]
&
0x0f
;
// 4bits
i_opaque_data_present
=
(
p_peek
[
0
]
>>
4
)
&
0x01
;
// 1bit
...
...
@@ -487,6 +487,12 @@ static int DemuxPacket( input_thread_t *p_input, vlc_bool_t b_play_audio )
msg_Warn
(
p_input
,
"p_peek[0]&0x80 != 0x80"
);
}
/* sanity check */
if
(
i_skip
+
2
>=
i_data_packet_min
)
{
goto
loop_error_recovery
;
}
i_packet_flags
=
p_peek
[
i_skip
];
i_skip
++
;
i_packet_property
=
p_peek
[
i_skip
];
i_skip
++
;
...
...
@@ -552,6 +558,11 @@ static int DemuxPacket( input_thread_t *p_input, vlc_bool_t b_play_audio )
i_pts_delta
=
0
;
i_media_object_offset
=
i_tmp
;
if
(
i_skip
>=
i_packet_size_left
)
{
break
;
}
}
else
if
(
i_replicated_data_length
==
1
)
{
...
...
@@ -582,6 +593,11 @@ static int DemuxPacket( input_thread_t *p_input, vlc_bool_t b_play_audio )
i_packet_padding_length
-
i_skip
;
}
if
(
i_payload_data_length
<
0
||
i_skip
+
i_payload_data_length
>
i_packet_size_left
)
{
break
;
}
#if 0
msg_Dbg( p_input,
"payload(%d/%d) stream_number:%d media_object_number:%d media_object_offset:%d replicated_data_length:%d payload_data_length %d",
...
...
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