projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
34c426b
)
avsdec: Set dimensions instead of relying on the demuxer.
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 20 Apr 2012 15:42:18 +0000
(17:42 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 20 Apr 2012 15:42:18 +0000
(17:42 +0200)
This fixes out of array writes.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/avs.c
patch
|
blob
|
history
diff --git
a/libavcodec/avs.c
b/libavcodec/avs.c
index 17d4e10fa4d9380db722ff20b5ad604b9dfde390..801e1bcd783deba16662e1ee2fb704c9b788a7ac 100644
(file)
--- a/
libavcodec/avs.c
+++ b/
libavcodec/avs.c
@@
-162,6
+162,7
@@
static av_cold int avs_decode_init(AVCodecContext * avctx)
AvsContext *const avs = avctx->priv_data;
avctx->pix_fmt = PIX_FMT_PAL8;
avcodec_get_frame_defaults(&avs->picture);
AvsContext *const avs = avctx->priv_data;
avctx->pix_fmt = PIX_FMT_PAL8;
avcodec_get_frame_defaults(&avs->picture);
+ avcodec_set_dimensions(avctx, 318, 198);
return 0;
}
return 0;
}