Commit 2fc2ab93 authored by ivo's avatar ivo

remove useless cast


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11328 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent dccd66e4
...@@ -73,7 +73,7 @@ static int pcx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, ...@@ -73,7 +73,7 @@ static int pcx_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
uint8_t *buf, int buf_size) { uint8_t *buf, int buf_size) {
PCXContext * const s = avctx->priv_data; PCXContext * const s = avctx->priv_data;
AVFrame *picture = data; AVFrame *picture = data;
AVFrame * const p = (AVFrame *)&s->picture; AVFrame * const p = &s->picture;
int xmin, ymin, xmax, ymax; int xmin, ymin, xmax, ymax;
unsigned int w, h, bits_per_pixel, bytes_per_line, nplanes, stride, y, x, unsigned int w, h, bits_per_pixel, bytes_per_line, nplanes, stride, y, x,
bytes_per_scanline; bytes_per_scanline;
......
...@@ -38,7 +38,7 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, ...@@ -38,7 +38,7 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
uint8_t *buf, int buf_size) { uint8_t *buf, int buf_size) {
PTXContext * const s = avctx->priv_data; PTXContext * const s = avctx->priv_data;
AVFrame *picture = 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; unsigned int offset, w, h, y, stride, bytes_per_pixel;
uint8_t *ptr; uint8_t *ptr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment