Mercurial > libavcodec.hg
changeset 6070:4acd7b248bb8 libavcodec
remove useless casts
author | ivo |
---|---|
date | Wed, 26 Dec 2007 16:23:25 +0000 |
parents | 3670c9e7ff4d |
children | 20d8a8f0fd30 |
files | ptx.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ptx.c Tue Dec 25 15:36:12 2007 +0000 +++ b/ptx.c Wed Dec 26 16:23:25 2007 +0000 @@ -28,8 +28,8 @@ static int ptx_init(AVCodecContext *avctx) { PTXContext *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; s->picture.data[0] = NULL; return 0; @@ -89,7 +89,7 @@ buf += w*bytes_per_pixel; } - *picture = *(AVFrame *)&s->picture; + *picture = s->picture; *data_size = sizeof(AVPicture); return offset + w*h*bytes_per_pixel;