Mercurial > libavcodec.hg
changeset 6075:4d43f2e3aaa5 libavcodec
remove useless cast
author | ivo |
---|---|
date | Thu, 27 Dec 2007 11:49:28 +0000 |
parents | 036d93ae3095 |
children | ddb692c6b01d |
files | pcx.c ptx.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pcx.c Thu Dec 27 03:03:45 2007 +0000 +++ b/pcx.c Thu Dec 27 11:49:28 2007 +0000 @@ -73,7 +73,7 @@ uint8_t *buf, int buf_size) { PCXContext * const s = avctx->priv_data; AVFrame *picture = data; - AVFrame * const p = (AVFrame *)&s->picture; + AVFrame * const p = &s->picture; int xmin, ymin, xmax, ymax; unsigned int w, h, bits_per_pixel, bytes_per_line, nplanes, stride, y, x, bytes_per_scanline;
--- a/ptx.c Thu Dec 27 03:03:45 2007 +0000 +++ b/ptx.c Thu Dec 27 11:49:28 2007 +0000 @@ -38,7 +38,7 @@ uint8_t *buf, int buf_size) { PTXContext * const s = avctx->priv_data; AVFrame *picture = data; - AVFrame * const p = (AVFrame *)&s->picture; + AVFrame * const p = &s->picture; unsigned int offset, w, h, y, stride, bytes_per_pixel; uint8_t *ptr;