From 91be76a6622d14b6f734886d00ffe9bca4f4d13b Mon Sep 17 00:00:00 2001 From: Ivo van Poorten Date: Thu, 27 Dec 2007 11:49:28 +0000 Subject: [PATCH] remove useless cast Originally committed as revision 11328 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/pcx.c | 2 +- libavcodec/ptx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/pcx.c b/libavcodec/pcx.c index af92b27704..568c150a35 100644 --- a/libavcodec/pcx.c +++ b/libavcodec/pcx.c @@ -73,7 +73,7 @@ static int pcx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, 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 --git a/libavcodec/ptx.c b/libavcodec/ptx.c index b3e2919df7..814697f5ca 100644 --- a/libavcodec/ptx.c +++ b/libavcodec/ptx.c @@ -38,7 +38,7 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, 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;