Revision b6a66897 libavcodec/mdec.c

View differences:

libavcodec/mdec.c
157 157
{
158 158
    MDECContext * const a = avctx->priv_data;
159 159
    AVFrame *picture = data;
160
    AVFrame * const p= (AVFrame*)&a->picture;
160
    AVFrame * const p= &a->picture;
161 161
    int i;
162 162

  
163 163
    if(p->data[0])
......
200 200
    p->quality= a->qscale * FF_QP2LAMBDA;
201 201
    memset(p->qscale_table, a->qscale, p->qstride*a->mb_height);
202 202

  
203
    *picture= *(AVFrame*)&a->picture;
203
    *picture   = a->picture;
204 204
    *data_size = sizeof(AVPicture);
205 205

  
206 206
    return (get_bits_count(&a->gb)+31)/32*4;
......
214 214
    a->mb_width   = (avctx->coded_width  + 15) / 16;
215 215
    a->mb_height  = (avctx->coded_height + 15) / 16;
216 216

  
217
    avctx->coded_frame= (AVFrame*)&a->picture;
217
    avctx->coded_frame= &a->picture;
218 218
    a->avctx= avctx;
219 219
}
220 220

  
221 221
static av_cold int decode_init(AVCodecContext *avctx){
222 222
    MDECContext * const a = avctx->priv_data;
223
    AVFrame *p= (AVFrame*)&a->picture;
223
    AVFrame *p= &a->picture;
224 224

  
225 225
    mdec_common_init(avctx);
226 226
    init_vlcs();

Also available in: Unified diff