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
84cb5c55
Commit
84cb5c55
authored
May 06, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mp4: fix a segfault and play .3gp with h263 video track.
parent
9ff0782a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+2
-1
modules/demux/mp4/libmp4.h
modules/demux/mp4/libmp4.h
+2
-1
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+5
-2
No files found.
modules/demux/mp4/libmp4.c
View file @
84cb5c55
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* libmp4.c : LibMP4 library for mp4 module for vlc
* libmp4.c : LibMP4 library for mp4 module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: libmp4.c,v 1.2
3 2003/04/25 21:47:25
fenrir Exp $
* $Id: libmp4.c,v 1.2
4 2003/05/06 16:05:10
fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
...
@@ -2121,6 +2121,7 @@ static struct
...
@@ -2121,6 +2121,7 @@ static struct
{
FOURCC_ZyGo
,
MP4_ReadBox_sample_vide
,
MP4_FreeBox_Common
},
{
FOURCC_ZyGo
,
MP4_ReadBox_sample_vide
,
MP4_FreeBox_Common
},
{
FOURCC_DIVX
,
MP4_ReadBox_sample_vide
,
MP4_FreeBox_Common
},
{
FOURCC_DIVX
,
MP4_ReadBox_sample_vide
,
MP4_FreeBox_Common
},
{
FOURCC_h263
,
MP4_ReadBox_sample_vide
,
MP4_FreeBox_Common
},
{
FOURCC_h263
,
MP4_ReadBox_sample_vide
,
MP4_FreeBox_Common
},
{
FOURCC_s263
,
MP4_ReadBox_sample_vide
,
MP4_FreeBox_Common
},
{
FOURCC_cvid
,
MP4_ReadBox_sample_vide
,
MP4_FreeBox_Common
},
{
FOURCC_cvid
,
MP4_ReadBox_sample_vide
,
MP4_FreeBox_Common
},
{
FOURCC_3IV1
,
MP4_ReadBox_sample_vide
,
MP4_FreeBox_Common
},
{
FOURCC_3IV1
,
MP4_ReadBox_sample_vide
,
MP4_FreeBox_Common
},
{
FOURCC_3iv1
,
MP4_ReadBox_sample_vide
,
MP4_FreeBox_Common
},
{
FOURCC_3iv1
,
MP4_ReadBox_sample_vide
,
MP4_FreeBox_Common
},
...
...
modules/demux/mp4/libmp4.h
View file @
84cb5c55
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* libmp4.h : LibMP4 library for mp4 module for vlc
* libmp4.h : LibMP4 library for mp4 module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: libmp4.h,v 1.1
0 2003/04/22 08:51:28
fenrir Exp $
* $Id: libmp4.h,v 1.1
1 2003/05/06 16:05:10
fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
...
@@ -122,6 +122,7 @@
...
@@ -122,6 +122,7 @@
#define FOURCC_3VID VLC_FOURCC( '3', 'V', 'I', 'D' )
#define FOURCC_3VID VLC_FOURCC( '3', 'V', 'I', 'D' )
#define FOURCC_3vid VLC_FOURCC( '3', 'v', 'i', 'd' )
#define FOURCC_3vid VLC_FOURCC( '3', 'v', 'i', 'd' )
#define FOURCC_h263 VLC_FOURCC( 'h', '2', '6', '3' )
#define FOURCC_h263 VLC_FOURCC( 'h', '2', '6', '3' )
#define FOURCC_s263 VLC_FOURCC( 's', '2', '6', '3' )
#define FOURCC_DIVX VLC_FOURCC( 'D', 'I', 'V', 'X' )
#define FOURCC_DIVX VLC_FOURCC( 'D', 'I', 'V', 'X' )
#define FOURCC_cvid VLC_FOURCC( 'c', 'v', 'i', 'd' )
#define FOURCC_cvid VLC_FOURCC( 'c', 'v', 'i', 'd' )
#define FOURCC_mjpa VLC_FOURCC( 'm', 'j', 'p', 'a' )
#define FOURCC_mjpa VLC_FOURCC( 'm', 'j', 'p', 'a' )
...
...
modules/demux/mp4/mp4.c
View file @
84cb5c55
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* mp4.c : MP4 file input module for vlc
* mp4.c : MP4 file input module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: mp4.c,v 1.2
8 2003/05/05 22:23:36 gbazin
Exp $
* $Id: mp4.c,v 1.2
9 2003/05/06 16:05:10 fenrir
Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
...
@@ -965,6 +965,9 @@ static int TrackCreateES ( input_thread_t *p_input,
...
@@ -965,6 +965,9 @@ static int TrackCreateES ( input_thread_t *p_input,
case
(
VLC_FOURCC
(
'r'
,
'a'
,
'w'
,
' '
)
):
case
(
VLC_FOURCC
(
'r'
,
'a'
,
'w'
,
' '
)
):
p_es
->
i_fourcc
=
VLC_FOURCC
(
'a'
,
'r'
,
'a'
,
'w'
);
p_es
->
i_fourcc
=
VLC_FOURCC
(
'a'
,
'r'
,
'a'
,
'w'
);
break
;
break
;
case
(
VLC_FOURCC
(
's'
,
'2'
,
'6'
,
'3'
)
):
p_es
->
i_fourcc
=
VLC_FOURCC
(
'h'
,
'2'
,
'6'
,
'3'
);
break
;
default:
default:
p_es
->
i_fourcc
=
p_sample
->
i_type
;
p_es
->
i_fourcc
=
p_sample
->
i_type
;
break
;
break
;
...
@@ -1491,7 +1494,7 @@ static void MP4_TrackCreate( input_thread_t *p_input,
...
@@ -1491,7 +1494,7 @@ static void MP4_TrackCreate( input_thread_t *p_input,
MP4_Box_t
*
p_sample
;
MP4_Box_t
*
p_sample
;
p_sample
=
MP4_BoxGet
(
p_track
->
p_stsd
,
"[0]"
);
p_sample
=
MP4_BoxGet
(
p_track
->
p_stsd
,
"[0]"
);
if
(
p_sample
)
if
(
p_sample
&&
p_sample
->
data
.
p_sample_soun
)
{
{
MP4_Box_data_sample_soun_t
*
p_soun
=
p_sample
->
data
.
p_sample_soun
;
MP4_Box_data_sample_soun_t
*
p_soun
=
p_sample
->
data
.
p_sample_soun
;
if
(
p_soun
->
i_qt_version
==
0
&&
p_track
->
i_timescale
!=
p_soun
->
i_sampleratehi
)
if
(
p_soun
->
i_qt_version
==
0
&&
p_track
->
i_timescale
!=
p_soun
->
i_sampleratehi
)
...
...
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