OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
211ca69
)
mmvideo: fix uninitialized variable use in mm_decode_intra
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Sat, 26 Oct 2013 23:54:47 +0000
(
01:54
+0200)
committer
Anton Khirnov
<anton@khirnov.net>
Sun, 27 Oct 2013 20:32:11 +0000
(21:32 +0100)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/mmvideo.c
patch
|
blob
|
history
diff --git
a/libavcodec/mmvideo.c
b/libavcodec/mmvideo.c
index
1da104c
..
edf602b
100644
(file)
--- a/
libavcodec/mmvideo.c
+++ b/
libavcodec/mmvideo.c
@@
-126,7
+126,8
@@
static int mm_decode_intra(MmContext * s, int half_horiz, int half_vert)
*/
static int mm_decode_inter(MmContext * s, int half_horiz, int half_vert)
{
- int data_off = bytestream2_get_le16(&s->gb), y;
+ int data_off = bytestream2_get_le16(&s->gb);
+ int y = 0;
GetByteContext data_ptr;
if (bytestream2_get_bytes_left(&s->gb) < data_off)