projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be00d2e
)
svq1dec: call avcodec_set_dimensions() after dimensions changed.
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 18 Nov 2011 18:10:21 +0000
(19:10 +0100)
committer
Reinhard Tartler
<siretart@tauware.de>
Fri, 23 Dec 2011 14:42:24 +0000
(15:42 +0100)
Fixes NGS00148, CVE-2011-4579
Found-by: Phillip Langlois
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/svq1dec.c
patch
|
blob
|
history
diff --git
a/libavcodec/svq1dec.c
b/libavcodec/svq1dec.c
index
7eb6e60
..
69dbd1b
100644
(file)
--- a/
libavcodec/svq1dec.c
+++ b/
libavcodec/svq1dec.c
@@
-659,6
+659,7
@@
static int svq1_decode_frame(AVCodecContext *avctx,
av_dlog(s->avctx, "Error in svq1_decode_frame_header %i\n",result);
return result;
}
+ avcodec_set_dimensions(avctx, s->width, s->height);
//FIXME this avoids some confusion for "B frames" without 2 references
//this should be removed after libavcodec can handle more flexible picture types & ordering