mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-17 22:31:18 +08:00
Check pointers before writing to memory, fix possible integer overflows
Force alignement for mszh and zlib decoders Originally committed as revision 3817 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -217,6 +217,12 @@ void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height){
|
||||
h_align=4;
|
||||
}
|
||||
break;
|
||||
case PIX_FMT_BGR24:
|
||||
if((s->codec_id == CODEC_ID_MSZH) || (s->codec_id == CODEC_ID_ZLIB)){
|
||||
w_align=4;
|
||||
h_align=4;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
w_align= 1;
|
||||
h_align= 1;
|
||||
|
Reference in New Issue
Block a user