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