aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/pngdec.c
diff options
context:
space:
mode:
authoravcoder2008-07-10 11:52:51 +0000
committerBenoit Fouet2008-07-10 11:52:51 +0000
commit6413d91d08e020790fedf99d24f9545a772c829b (patch)
tree4e3a947f9ac2d08844f6d4ed8ecf0c41f2f00e7a /libavcodec/pngdec.c
parent24909d3983f40bf2e6b78ef4b2d491968b06b5d6 (diff)
Remove useless casts.
Patch by avcoder ffmpeg at gmail d0t com Originally committed as revision 14154 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/pngdec.c')
-rw-r--r--libavcodec/pngdec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index 14c67200ed..77ac0d155d 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -383,7 +383,7 @@ static int decode_frame(AVCodecContext *avctx,
{
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 @@ static int decode_frame(AVCodecContext *avctx,
}
}
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 int decode_frame(AVCodecContext *avctx,
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;