Revision 6e1f0d5e

View differences:

libavcodec/mmvideo.c
59 59
    avctx->pix_fmt = PIX_FMT_PAL8;
60 60

  
61 61
    s->frame.reference = 1;
62
    if (avctx->get_buffer(avctx, &s->frame)) {
63
        av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed\n");
64
        return -1;
65
    }
66 62

  
67 63
    return 0;
68 64
}
......
182 178
    buf += MM_PREAMBLE_SIZE;
183 179
    buf_size -= MM_PREAMBLE_SIZE;
184 180

  
181
    if (avctx->reget_buffer(avctx, &s->frame) < 0) {
182
        av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
183
        return -1;
184
    }
185

  
185 186
    switch(type) {
186 187
    case MM_TYPE_PALETTE   : mm_decode_pal(s, buf, buf_end); return buf_size;
187 188
    case MM_TYPE_INTRA     : mm_decode_intra(s, 0, 0, buf, buf_size); break;

Also available in: Unified diff