Mercurial > libavcodec.hg
comparison xan.c @ 2422:18b8b2dcc037 libavcodec
various security fixes and precautionary checks
author | michael |
---|---|
date | Wed, 12 Jan 2005 00:16:25 +0000 |
parents | 39ad6cd5d4a6 |
children | ad9d121cc6e9 |
comparison
equal
deleted
inserted
replaced
2421:e326490f58c4 | 2422:18b8b2dcc037 |
---|---|
130 v_r_table[i] = V_R * i; | 130 v_r_table[i] = V_R * i; |
131 v_g_table[i] = V_G * i; | 131 v_g_table[i] = V_G * i; |
132 v_b_table[i] = V_B * i; | 132 v_b_table[i] = V_B * i; |
133 } | 133 } |
134 | 134 |
135 if(avcodec_check_dimensions(avctx, avctx->width, avctx->height)) | |
136 return -1; | |
137 | |
135 s->buffer1 = av_malloc(avctx->width * avctx->height); | 138 s->buffer1 = av_malloc(avctx->width * avctx->height); |
136 s->buffer2 = av_malloc(avctx->width * avctx->height); | 139 s->buffer2 = av_malloc(avctx->width * avctx->height); |
137 if (!s->buffer1 || !s->buffer2) | 140 if (!s->buffer1 || !s->buffer2) |
138 return -1; | 141 return -1; |
139 | 142 |