diff --git a/libavcodec/pcx.c b/libavcodec/pcx.c index af92b277041d9b57d9dd53d6b7cba193a461cd56..568c150a35b94ee7a61cc98bca046d04e98d7dd6 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 b3e2919df77ccf36e08e145f4eb384100ef73d1e..814697f5ca03c6df69c614d5419905f6247e85d9 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;