Mercurial > libavcodec.hg
comparison utils.c @ 2418:82af834636c2 libavcodec
Check pointers before writing to memory, fix possible integer overflows
Force alignement for mszh and zlib decoders
| author | rtognimp |
|---|---|
| date | Sun, 09 Jan 2005 23:39:32 +0000 |
| parents | 582e635cfa08 |
| children | 18b8b2dcc037 |
comparison
equal
deleted
inserted
replaced
| 2417:991f39305057 | 2418:82af834636c2 |
|---|---|
| 211 w_align=4; | 211 w_align=4; |
| 212 h_align=4; | 212 h_align=4; |
| 213 } | 213 } |
| 214 case PIX_FMT_PAL8: | 214 case PIX_FMT_PAL8: |
| 215 if(s->codec_id == CODEC_ID_SMC){ | 215 if(s->codec_id == CODEC_ID_SMC){ |
| 216 w_align=4; | |
| 217 h_align=4; | |
| 218 } | |
| 219 break; | |
| 220 case PIX_FMT_BGR24: | |
| 221 if((s->codec_id == CODEC_ID_MSZH) || (s->codec_id == CODEC_ID_ZLIB)){ | |
| 216 w_align=4; | 222 w_align=4; |
| 217 h_align=4; | 223 h_align=4; |
| 218 } | 224 } |
| 219 break; | 225 break; |
| 220 default: | 226 default: |
