Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
84cb5c55
Commit
84cb5c55
authored
May 06, 2003
by
Laurent Aimar
Browse files
* mp4: fix a segfault and play .3gp with h263 video track.
parent
9ff0782a
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/demux/mp4/libmp4.c
View file @
84cb5c55
...
...
@@ -2,7 +2,7 @@
* libmp4.c : LibMP4 library for mp4 module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: libmp4.c,v 1.2
3
2003/0
4/25 21:47:25
fenrir Exp $
* $Id: libmp4.c,v 1.2
4
2003/0
5/06 16:05:10
fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -2121,6 +2121,7 @@ static struct
{
FOURCC_ZyGo
,
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_s263
,
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
},
...
...
modules/demux/mp4/libmp4.h
View file @
84cb5c55
...
...
@@ -2,7 +2,7 @@
* libmp4.h : LibMP4 library for mp4 module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: libmp4.h,v 1.1
0
2003/0
4/22 08:51:28
fenrir Exp $
* $Id: libmp4.h,v 1.1
1
2003/0
5/06 16:05:10
fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -122,6 +122,7 @@
#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_s263 VLC_FOURCC( 's', '2', '6', '3' )
#define FOURCC_DIVX VLC_FOURCC( 'D', 'I', 'V', 'X' )
#define FOURCC_cvid VLC_FOURCC( 'c', 'v', 'i', 'd' )
#define FOURCC_mjpa VLC_FOURCC( 'm', 'j', 'p', 'a' )
...
...
modules/demux/mp4/mp4.c
View file @
84cb5c55
...
...
@@ -2,7 +2,7 @@
* mp4.c : MP4 file input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: mp4.c,v 1.2
8
2003/05/0
5 22:23:36 gbazin
Exp $
* $Id: mp4.c,v 1.2
9
2003/05/0
6 16:05:10 fenrir
Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -965,6 +965,9 @@ static int TrackCreateES ( input_thread_t *p_input,
case
(
VLC_FOURCC
(
'r'
,
'a'
,
'w'
,
' '
)
):
p_es
->
i_fourcc
=
VLC_FOURCC
(
'a'
,
'r'
,
'a'
,
'w'
);
break
;
case
(
VLC_FOURCC
(
's'
,
'2'
,
'6'
,
'3'
)
):
p_es
->
i_fourcc
=
VLC_FOURCC
(
'h'
,
'2'
,
'6'
,
'3'
);
break
;
default:
p_es
->
i_fourcc
=
p_sample
->
i_type
;
break
;
...
...
@@ -1491,7 +1494,7 @@ static void MP4_TrackCreate( input_thread_t *p_input,
MP4_Box_t
*
p_sample
;
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
;
if
(
p_soun
->
i_qt_version
==
0
&&
p_track
->
i_timescale
!=
p_soun
->
i_sampleratehi
)
...
...
Write
Preview
Supports
Markdown
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