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
f439a679
Commit
f439a679
authored
Jul 26, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: fix potential overread for mpeg4 with vol.
parent
c713876f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
modules/codec/ffmpeg/video.c
modules/codec/ffmpeg/video.c
+8
-2
No files found.
modules/codec/ffmpeg/video.c
View file @
f439a679
...
...
@@ -2,7 +2,7 @@
* video.c: video decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: video.c,v 1.3
5 2003/07/10 01:33:41
fenrir Exp $
* $Id: video.c,v 1.3
6 2003/07/26 15:34:43
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
...
...
@@ -339,10 +339,16 @@ int E_( InitThread_Video )( vdec_thread_t *p_vdec )
if
(
p_vdec
->
i_codec_id
==
CODEC_ID_MPEG4
)
{
uint8_t
*
p_vol
=
malloc
(
i_size
+
FF_INPUT_BUFFER_PADDING_SIZE
);
memcpy
(
p_vol
,
&
p_vdec
->
p_format
[
1
],
i_size
);
memset
(
&
p_vol
[
i_size
],
0
,
FF_INPUT_BUFFER_PADDING_SIZE
);
avcodec_decode_video
(
p_vdec
->
p_context
,
p_vdec
->
p_ff_pic
,
&
b_gotpicture
,
(
void
*
)
&
p_vdec
->
p_format
[
1
]
,
p_vol
,
i_size
);
free
(
p_vol
);
}
#if LIBAVCODEC_BUILD >= 4666
else
if
(
p_vdec
->
i_codec_id
==
CODEC_ID_SVQ3
)
...
...
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