git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c0aff40
)
diracdec: Use only one frame per reference
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 11 Nov 2012 15:36:27 +0000
(16:36 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 11 Nov 2012 15:43:53 +0000
(16:43 +0100)
Prevents null ptr dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/diracdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/diracdec.c
b/libavcodec/diracdec.c
index
3d42a9d
..
c70a0c7
100644
(file)
--- a/
libavcodec/diracdec.c
+++ b/
libavcodec/diracdec.c
@@
-1665,6
+1665,7
@@
static int dirac_decode_picture_header(DiracContext *s)
if (!s->all_frames[j].avframe.data[0]) {
s->ref_pics[i] = &s->all_frames[j];
s->avctx->get_buffer(s->avctx, &s->ref_pics[i]->avframe);
+ break;
}
}