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
5251f813
Commit
5251f813
authored
May 10, 2003
by
Laurent Aimar
Browse files
* ffmpeg : fix for svq3.
parent
1ad8d697
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/codec/ffmpeg/video.c
View file @
5251f813
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* video.c: video decoder using ffmpeg library
* video.c: video decoder using ffmpeg library
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: video.c,v 1.2
7
2003/05/
09 23:23
:4
5
fenrir Exp $
* $Id: video.c,v 1.2
8
2003/05/
10 18:16
:4
4
fenrir Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
* Gildas Bazin <gbazin@netcourrier.com>
...
@@ -297,15 +297,14 @@ int E_( InitThread_Video )( vdec_thread_t *p_vdec )
...
@@ -297,15 +297,14 @@ int E_( InitThread_Video )( vdec_thread_t *p_vdec )
#if LIBAVCODEC_BUILD >= 4666
#if LIBAVCODEC_BUILD >= 4666
else
if
(
p_vdec
->
i_codec_id
==
CODEC_ID_SVQ3
)
else
if
(
p_vdec
->
i_codec_id
==
CODEC_ID_SVQ3
)
{
{
p_vdec
->
p_context
->
extradata_size
=
i_size
+
28
;
uint8_t
*
p
;
p_vdec
->
p_context
->
extradata
=
malloc
(
p_vdec
->
p_context
->
extradata_size
);
memcpy
(
&
((
char
*
)
p_vdec
->
p_context
->
extradata
)[
0
],
"stsd"
,
4
);
p_vdec
->
p_context
->
extradata_size
=
i_size
+
12
;
SetDWBE
(
&
((
char
*
)
p_vdec
->
p_context
->
extradata
)[
4
],
0
);
/* version and flag */
p
=
p_vdec
->
p_context
->
extradata
=
malloc
(
p_vdec
->
p_context
->
extradata_size
);
SetDWBE
(
&
((
char
*
)
p_vdec
->
p_context
->
extradata
)[
8
],
0
);
/* entry count */
SetDWBE
(
&
((
char
*
)
p_vdec
->
p_context
->
extradata
)[
12
],
0
);
/* sample soun size FIXME */
memcpy
(
&
p
[
0
],
"SVQ3"
,
4
);
memcpy
(
&
((
char
*
)
p_vdec
->
p_context
->
extradata
)[
16
],
"SVQ3"
,
4
);
memset
(
&
p
[
4
],
0
,
8
);
memset
(
&
((
char
*
)
p_vdec
->
p_context
->
extradata
)[
20
],
0
,
8
);
/* reserved[6] and ref index(16b) */
memcpy
(
&
p
[
12
],
&
p_vdec
->
p_format
[
1
],
i_size
);
memcpy
(
&
((
char
*
)
p_vdec
->
p_context
->
extradata
)[
28
],
&
p_vdec
->
p_format
[
1
],
i_size
);
}
}
#endif
#endif
else
else
...
...
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