Mercurial > libavcodec.hg
changeset 7236:6c1244ad5620 libavcodec
Remove useless casts.
Patch by avcoder ffmpeg at gmail d0t com
author | benoit |
---|---|
date | Thu, 10 Jul 2008 11:52:51 +0000 |
parents | dd07ede98d7e |
children | 9a5cdba22eeb |
files | pngdec.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/pngdec.c Thu Jul 10 11:49:53 2008 +0000 +++ b/pngdec.c Thu Jul 10 11:52:51 2008 +0000 @@ -383,7 +383,7 @@ { PNGDecContext * const s = avctx->priv_data; AVFrame *picture = data; - AVFrame * const p= (AVFrame*)&s->picture; + AVFrame * const p= &s->picture; uint32_t tag, length; int ret, crc; @@ -582,8 +582,8 @@ } } exit_loop: - *picture= *(AVFrame*)&s->picture; - *data_size = sizeof(AVPicture); + *picture= s->picture; + *data_size = sizeof(AVFrame); ret = s->bytestream - s->bytestream_start; the_end: @@ -600,8 +600,8 @@ static av_cold int png_dec_init(AVCodecContext *avctx){ PNGDecContext *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); return 0;