Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ddffbfbc
Commit
ddffbfbc
authored
Feb 12, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: use the data_packet_count from the asf header when the server
gives an invalid one. (I hope it doesn't break anything)
parent
dc0a3896
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
modules/access/mms/asf.c
modules/access/mms/asf.c
+4
-1
modules/access/mms/mmstu.c
modules/access/mms/mmstu.c
+5
-1
No files found.
modules/access/mms/asf.c
View file @
ddffbfbc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* asf.c: MMS access plug-in
* asf.c: MMS access plug-in
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* Copyright (C) 2001, 2002 VideoLAN
* $Id: asf.c,v 1.
2 2003/12/07 18:55:59 jpsaman
Exp $
* $Id: asf.c,v 1.
3 2004/02/12 20:09:38 fenrir
Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -67,6 +67,9 @@ void E_( asf_HeaderParse ) ( asf_header_t *hdr,
...
@@ -67,6 +67,9 @@ void E_( asf_HeaderParse ) ( asf_header_t *hdr,
uint64_t
i_size
;
uint64_t
i_size
;
int
i
;
int
i
;
hdr
->
i_file_size
=
0
;
hdr
->
i_data_packets_count
=
0
;
hdr
->
i_min_data_packet_size
=
0
;
for
(
i
=
0
;
i
<
128
;
i
++
)
for
(
i
=
0
;
i
<
128
;
i
++
)
{
{
hdr
->
stream
[
i
].
i_cat
=
ASF_STREAM_UNKNOWN
;
hdr
->
stream
[
i
].
i_cat
=
ASF_STREAM_UNKNOWN
;
...
...
modules/access/mms/mmstu.c
View file @
ddffbfbc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* mms.c: MMS access plug-in
* mms.c: MMS access plug-in
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* Copyright (C) 2001, 2002 VideoLAN
* $Id: mmstu.c,v 1.
8 2004/01/22 18:4
9:38 fenrir Exp $
* $Id: mmstu.c,v 1.
9 2004/02/12 20:0
9:38 fenrir Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -192,6 +192,10 @@ int E_(MMSTUOpen)( input_thread_t *p_input )
...
@@ -192,6 +192,10 @@ int E_(MMSTUOpen)( input_thread_t *p_input )
* broadcast yy=0x02, xx= 0x00
* broadcast yy=0x02, xx= 0x00
* pre-recorded yy=0x01, xx= 0x80 if video, 0x00 no video
* pre-recorded yy=0x01, xx= 0x80 if video, 0x00 no video
*/
*/
if
(
p_sys
->
i_packet_count
<=
0
&&
p_sys
->
asfh
.
i_data_packets_count
>
0
)
{
p_sys
->
i_packet_count
=
p_sys
->
asfh
.
i_data_packets_count
;
}
if
(
p_sys
->
i_packet_count
<=
0
||
(
p_sys
->
i_flags_broadcast
>>
24
)
==
0x02
)
if
(
p_sys
->
i_packet_count
<=
0
||
(
p_sys
->
i_flags_broadcast
>>
24
)
==
0x02
)
{
{
p_input
->
stream
.
b_seekable
=
0
;
p_input
->
stream
.
b_seekable
=
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