comparison ptx.c @ 6070:4acd7b248bb8 libavcodec

remove useless casts
author ivo
date Wed, 26 Dec 2007 16:23:25 +0000
parents c16a59ef6a86
children 20d8a8f0fd30
comparison
equal deleted inserted replaced
6069:3670c9e7ff4d 6070:4acd7b248bb8
26 } PTXContext; 26 } PTXContext;
27 27
28 static int ptx_init(AVCodecContext *avctx) { 28 static int ptx_init(AVCodecContext *avctx) {
29 PTXContext *s = avctx->priv_data; 29 PTXContext *s = avctx->priv_data;
30 30
31 avcodec_get_frame_defaults((AVFrame*)&s->picture); 31 avcodec_get_frame_defaults(&s->picture);
32 avctx->coded_frame= (AVFrame*)&s->picture; 32 avctx->coded_frame= &s->picture;
33 s->picture.data[0] = NULL; 33 s->picture.data[0] = NULL;
34 34
35 return 0; 35 return 0;
36 } 36 }
37 37
87 #endif 87 #endif
88 ptr += stride; 88 ptr += stride;
89 buf += w*bytes_per_pixel; 89 buf += w*bytes_per_pixel;
90 } 90 }
91 91
92 *picture = *(AVFrame *)&s->picture; 92 *picture = s->picture;
93 *data_size = sizeof(AVPicture); 93 *data_size = sizeof(AVPicture);
94 94
95 return offset + w*h*bytes_per_pixel; 95 return offset + w*h*bytes_per_pixel;
96 } 96 }
97 97