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
Steve Lhomme
VLC
Commits
f439a679
Commit
f439a679
authored
Jul 26, 2003
by
Laurent Aimar
Browse files
ffmpeg: fix potential overread for mpeg4 with vol.
parent
c713876f
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
:3
3
:4
1
fenrir Exp $
* $Id: video.c,v 1.3
6
2003/07/
26 15
:3
4
:4
3
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