260
261
av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
264
265
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
267
268
if ((res = ff_cmap_read_palette(avctx, (uint32_t*)s->frame.data[1])) < 0)
272
273
if (avctx->codec_tag == MKTAG('I','L','B','M')) { // interleaved
275
276
uint8_t *row = &s->frame.data[0][ y*s->frame.linesize[0] ];
276
277
memset(row, 0, avctx->width);
277
278
for (plane = 0; plane < avctx->bits_per_coded_sample && buf < buf_end; plane++) {