projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f8a91c
)
10l, add check forgotten in last commit
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 9 Sep 2007 08:52:53 +0000
(08:52 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 9 Sep 2007 08:52:53 +0000
(08:52 +0000)
Originally committed as revision 10442 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/nuv.c
patch
|
blob
|
history
diff --git
a/libavcodec/nuv.c
b/libavcodec/nuv.c
index
665527b
..
d07c868
100644
(file)
--- a/
libavcodec/nuv.c
+++ b/
libavcodec/nuv.c
@@
-158,6
+158,10
@@
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
if (c->codec_frameheader) {
get_quant_quality(c, buf[10]);
rtjpeg_decode_init(&c->rtj, &c->dsp, c->width, c->height, c->lq, c->cq);
+ if (buf_size < 12) {
+ av_log(avctx, AV_LOG_ERROR, "invalid nuv video frame\n");
+ return -1;
+ }
buf = &buf[12];
buf_size -= 12;
}