comparison msvideo1.c @ 1769:1514fd5d434b libavcodec

watch those hard tabs
author melanson
date Sat, 31 Jan 2004 17:57:57 +0000
parents 586b5c08863c
children 39ad6cd5d4a6
comparison
equal deleted inserted replaced
1768:45e99aa10395 1769:1514fd5d434b
301 void *data, int *data_size, 301 void *data, int *data_size,
302 uint8_t *buf, int buf_size) 302 uint8_t *buf, int buf_size)
303 { 303 {
304 Msvideo1Context *s = (Msvideo1Context *)avctx->priv_data; 304 Msvideo1Context *s = (Msvideo1Context *)avctx->priv_data;
305 305
306 /* no supplementary picture */ 306 /* no supplementary picture */
307 if (buf_size == 0) 307 if (buf_size == 0)
308 return 0; 308 return 0;
309 309
310 s->buf = buf; 310 s->buf = buf;
311 s->size = buf_size; 311 s->size = buf_size;
312 312
313 s->frame.reference = 1; 313 s->frame.reference = 1;
314 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; 314 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE;
315 if (avctx->reget_buffer(avctx, &s->frame)) { 315 if (avctx->reget_buffer(avctx, &s->frame)) {
316 av_log(s->avctx, AV_LOG_ERROR, "reget_buffer() failed\n"); 316 av_log(s->avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
317 return -1; 317 return -1;
318 } 318 }
319 319