Browse Source

remove useless cast

Originally committed as revision 11328 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Ivo van Poorten 17 years ago
parent
commit
91be76a662
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavcodec/pcx.c
  2. +1
    -1
      libavcodec/ptx.c

+ 1
- 1
libavcodec/pcx.c View File

@@ -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;


+ 1
- 1
libavcodec/ptx.c View File

@@ -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;



Loading…
Cancel
Save