summaryrefslogtreecommitdiff
path: root/libavcodec/ptx.c
diff options
context:
space:
mode:
authorIvo van Poorten <ivop@euronet.nl>2007-12-26 16:23:25 +0000
committerIvo van Poorten <ivop@euronet.nl>2007-12-26 16:23:25 +0000
commit9a8d73183288ff6bd05d239b950023a64292f2c7 (patch)
tree32b32f5998dd33fbf5ebbcaa8d11d5078276d64e /libavcodec/ptx.c
parent9c87b8f77721bd51c87e735bac1580a99f0b8f2b (diff)
remove useless casts
Originally committed as revision 11317 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ptx.c')
-rw-r--r--libavcodec/ptx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/ptx.c b/libavcodec/ptx.c
index 448f398dfb..20fabb64ee 100644
--- a/libavcodec/ptx.c
+++ b/libavcodec/ptx.c
@@ -28,8 +28,8 @@ typedef struct PTXContext {
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 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
buf += w*bytes_per_pixel;
}
- *picture = *(AVFrame *)&s->picture;
+ *picture = s->picture;
*data_size = sizeof(AVPicture);
return offset + w*h*bytes_per_pixel;