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
b1e8912f
Commit
b1e8912f
authored
Mar 01, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* video.c: make SVQ3/ffmpeg happy with complex stsd atom (ie with more
than just the "SMI " one).
parent
ab3260f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
modules/codec/ffmpeg/video.c
modules/codec/ffmpeg/video.c
+24
-1
No files found.
modules/codec/ffmpeg/video.c
View file @
b1e8912f
...
...
@@ -2,7 +2,7 @@
* video.c: video decoder using the ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: video.c,v 1.6
7 2004/02/25 17:48:52
fenrir Exp $
* $Id: video.c,v 1.6
8 2004/03/01 22:35:55
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
...
...
@@ -293,6 +293,29 @@ int E_(InitVideoDec)( decoder_t *p_dec, AVCodecContext *p_context,
memcpy
(
&
p
[
0
],
"SVQ3"
,
4
);
memset
(
&
p
[
4
],
0
,
8
);
memcpy
(
&
p
[
12
],
p_dec
->
fmt_in
.
p_extra
,
i_size
);
/* Now remove all atoms before the SMI one */
if
(
p_sys
->
p_context
->
extradata_size
>
0x5a
&&
strncmp
(
&
p
[
0x56
],
"SMI "
,
4
)
)
{
uint8_t
*
psz
=
&
p
[
0x52
];
while
(
psz
<
&
p
[
p_sys
->
p_context
->
extradata_size
-
8
]
)
{
int
i_size
=
GetDWBE
(
psz
);
if
(
i_size
<=
1
)
{
/* FIXME handle 1 as long size */
break
;
}
if
(
!
strncmp
(
&
psz
[
4
],
"SMI "
,
4
)
)
{
memmove
(
&
p
[
0x52
],
psz
,
&
p
[
p_sys
->
p_context
->
extradata_size
]
-
psz
);
break
;
}
psz
+=
i_size
;
}
}
}
else
if
(
p_dec
->
fmt_in
.
i_codec
==
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'0'
)
||
p_dec
->
fmt_in
.
i_codec
==
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'3'
)
||
...
...
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