comparison roqvideo.c @ 2028:141a9539e270 libavcodec

data_size = 0 cleanup
author michael
date Fri, 21 May 2004 14:37:16 +0000
parents 932d306bf1dc
children 2aae25679885
comparison
equal deleted inserted replaced
2027:3a78447c3b53 2028:141a9539e270
448 void *data, int *data_size, 448 void *data, int *data_size,
449 uint8_t *buf, int buf_size) 449 uint8_t *buf, int buf_size)
450 { 450 {
451 RoqContext *s = avctx->priv_data; 451 RoqContext *s = avctx->priv_data;
452 452
453 *data_size = 0;
454
455 if (avctx->get_buffer(avctx, &s->current_frame)) { 453 if (avctx->get_buffer(avctx, &s->current_frame)) {
456 av_log(avctx, AV_LOG_ERROR, " RoQ: get_buffer() failed\n"); 454 av_log(avctx, AV_LOG_ERROR, " RoQ: get_buffer() failed\n");
457 return -1; 455 return -1;
458 } 456 }
459 s->y_stride = s->current_frame.linesize[0]; 457 s->y_stride = s->current_frame.linesize[0];