printf ("  MS Video-1 Video: get_buffer() failed\n");
av_log(s->avctx, AV_LOG_ERROR, "  MS Video-1 Video: get_buffer() failed\n");
static int msvideo1_decode_frame(AVCodecContext *avctx,                                void *data, int *data_size,                                uint8_t *buf, int buf_size){    Msvideo1Context *s = (Msvideo1Context *)avctx->priv_data;    s->buf = buf;    s->size = buf_size;    if (avctx->get_buffer(avctx, &s->frame)) {        printf ("  MS Video-1 Video: get_buffer() failed\n");        return -1;    }    if (s->prev_frame.data[0] &&(s->frame.linesize[0] != s->prev_frame.linesize[0]))        printf ("  MS Video-1: Buffer linesize changed: current %u, previous %u.\n"                "              Expect wrong image and/or crash!\n",                s->frame.linesize[0], s->prev_frame.linesize[0]);    if (s->mode_8bit)        msvideo1_decode_8bit(s);    else        msvideo1_decode_16bit(s);    if (s->prev_frame.data[0])        avctx->release_buffer(avctx, &s->prev_frame);    /* shuffle frames */    s->prev_frame = s->frame;    *data_size = sizeof(AVFrame);    *(AVFrame*)data = s->frame;    /* report that the buffer was completely consumed */    return buf_size;}