# HG changeset patch # User ivo # Date 1198756168 0 # Node ID 4d43f2e3aaa52d00b3442ebba9e923f5fba8884c # Parent 036d93ae3095429f86674d387c6bfa412fe1dcd5 remove useless cast diff -r 036d93ae3095 -r 4d43f2e3aaa5 pcx.c --- 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; diff -r 036d93ae3095 -r 4d43f2e3aaa5 ptx.c --- 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;