Revision 04939fb7

View differences:

libavcodec/msrle.c
171 171
    s->buf = buf;
172 172
    s->size = buf_size;
173 173

  
174
    s->frame.reference = 1;
174 175
    if (avctx->get_buffer(avctx, &s->frame)) {
175 176
        printf ("  MS RLE: get_buffer() failed\n");
176 177
        return -1;
......
183 184

  
184 185
    msrle_decode_pal8(s);
185 186

  
186
    if (s->frame.data[0])
187
        avctx->release_buffer(avctx, &s->frame);
187
    if (s->prev_frame.data[0])
188
        avctx->release_buffer(avctx, &s->prev_frame);
188 189

  
189 190
    /* shuffle frames */
190 191
    s->prev_frame = s->frame;

Also available in: Unified diff