Mercurial > libavcodec.hg
changeset 7235:dd07ede98d7e libavcodec
Remove useless casts.
Patch by avcoder ffmpeg at gmail d0t com
author | benoit |
---|---|
date | Thu, 10 Jul 2008 11:49:53 +0000 |
parents | dea986389c57 |
children | 6c1244ad5620 |
files | pngenc.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/pngenc.c Thu Jul 10 11:44:01 2008 +0000 +++ b/pngenc.c Thu Jul 10 11:49:53 2008 +0000 @@ -232,7 +232,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data){ PNGEncContext *s = avctx->priv_data; AVFrame *pict = data; - AVFrame * const p= (AVFrame*)&s->picture; + AVFrame * const p= &s->picture; int bit_depth, color_type, y, len, row_size, ret, is_progressive; int bits_per_pixel, pass_row_size; int compression_level; @@ -425,8 +425,8 @@ static av_cold int png_enc_init(AVCodecContext *avctx){ PNGEncContext *s = avctx->priv_data; - avcodec_get_frame_defaults((AVFrame*)&s->picture); - avctx->coded_frame= (AVFrame*)&s->picture; + avcodec_get_frame_defaults(&s->picture); + avctx->coded_frame= &s->picture; dsputil_init(&s->dsp, avctx); s->filter_type = av_clip(avctx->prediction_method, PNG_FILTER_VALUE_NONE, PNG_FILTER_VALUE_MIXED);