AVFrame *p, temp;
int i, frame_4cc, frame_size;
- *data_size = 0;
-
/* special case for last picture */
if (buf_size == 0) {
return 0;
2, 1, 2, 3, 3, 4, 4, 5
};
- *data_size = 0;
buf_ptr = buf;
while (buf_size > 0) {
len = s->inbuf_ptr - s->inbuf;
2, 1, 2, 3, 3, 4, 4, 5
};
- *data_size = 0;
buf_ptr = buf;
while (buf_size > 0) {
len = s->inbuf_ptr - s->inbuf;
if(st) { /* handle stereo interlacing */
c->channel = (channel + 1) % 2; /* we get one packet for left, then one for right data */
if(channel == 1) { /* wait for the other packet before outputing anything */
- *data_size = 0;
return src - buf;
}
}
}
break;
default:
- *data_size = 0;
return -1;
}
*data_size = (uint8_t *)samples - (uint8_t *)data;
Word16 serial[SERIAL_FRAMESIZE]; /* coded bits */
Word16 *synth;
UWord8 *packed_bits;
- *data_size=0;
static Word16 packed_size[16] = {12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 0};
int i;
static short block_size[16]={ 12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 0 };
enum Mode dec_mode;
int packet_size;
- *data_size=0;
//printf("amr_decode_frame data_size=%i buf=0x%X buf_size=%d frameCount=%d!!\n",*data_size,buf,buf_size,s->frameCount);
int offset=0;
int mode;
int packet_size;
- *data_size=0;
while(offset<buf_size)
{
AVFrame * const p= (AVFrame*)&a->picture;
int mb_x, mb_y;
- *data_size = 0;
-
/* special case for last picture */
if (buf_size == 0) {
return 0;
AVFrame * const p= (AVFrame*)&a->picture;
int x, y;
- *data_size = 0;
-
/* special case for last picture */
if (buf_size == 0) {
return 0;
unsigned char cur_byte;
int pixel_groups;
- *data_size = 0;
-
/* sanity check the buffer size: A buffer has 3x16-bytes tables
* followed by (height) lines each with 3 bytes to represent groups
* of 4 pixels. Thus, the total size of the buffer ought to be:
{
DVVideoContext *s = avctx->priv_data;
- *data_size=0;
/* special case for last picture */
if(buf_size==0)
return 0;
AVFrame *picture = data;
- *data_size = 0;
-
/* no supplementary picture */
if (buf_size == 0)
return 0;
int tmp = 0, i, j = 0, input_buf_size;
int16_t *samples = data, *left, *right;
- *data_size = 0;
-
s->avctx = avctx;
if(s->max_framesize == 0){
s->flags= avctx->flags;
s->flags2= avctx->flags2;
- *data_size = 0;
-
/* no supplementary picture */
if (buf_size == 0) {
/* special case for last picture */
s->flags= avctx->flags;
s->flags2= avctx->flags2;
- *data_size = 0;
-
/* no supplementary picture */
if (buf_size == 0) {
return 0;
AVFrame *picture = data;
- *data_size = 0;
-
/* no supplementary picture */
if (buf_size == 0)
return 0;
/* no supplementary picture */
if (buf_size == 0) {
- *data_size = 0;
return 0;
}
*data_size = 2 * 6 * buf_size;
break;
default:
- *data_size = 0;
return -1;
}
return buf_size;
int start_code;
AVFrame *picture = data;
- *data_size = 0;
-
/* no supplementary picture */
if (buf_size == 0)
return 0;
uint32_t dqt_offs, dht_offs, sof_offs, sos_offs, second_field_offs;
uint32_t field_size;
- *data_size = 0;
-
/* no supplementary picture */
if (buf_size == 0)
return 0;
uint8_t *buf_ptr, *buf_end, *recoded;
int i = 0, j = 0;
- *data_size = 0;
-
/* no supplementary picture */
if (buf_size == 0)
return 0;
MpegEncContext *s2 = &s->mpeg_enc_ctx;
dprintf("fill_buffer\n");
- *data_size = 0;
-
/* special case for last picture */
if (buf_size == 0 && s2->low_delay==0 && s2->next_picture_ptr) {
*picture= *(AVFrame*)s2->next_picture_ptr;
int len, out_size;
short *out_samples = data;
- *data_size = 0;
buf_ptr = buf;
while (buf_size > 0) {
len = s->inbuf_ptr - s->inbuf;
if(!buf_size){
//FIXME flush
- *data_size=0;
return 0;
}
if (buf_size < bytesNeeded) {
memcpy(context->p, buf, buf_size);
context->p += buf_size;
- *data_size = 0;
return buf_size;
}
{
RoqContext *s = avctx->priv_data;
- *data_size = 0;
-
if (avctx->get_buffer(avctx, &s->current_frame)) {
av_log(avctx, AV_LOG_ERROR, " RoQ: get_buffer() failed\n");
return -1;
/* no supplementary picture */
if (buf_size == 0) {
- *data_size = 0;
return 0;
}
}
*data_size = sizeof(AVFrame);
- }else{
- *data_size = 0;
}
return buf_size;
return value;
}
-#if 0
static uint16_t svq1_component_checksum (uint16_t *pixels, int pitch,
int width, int height, int value) {
int x, y;
return value;
}
-#endif
static void svq1_parse_string (GetBitContext *bitbuf, uint8_t *out) {
uint8_t seed;
int result, i, x, y, width, height;
AVFrame *pict = data;
- *data_size=0;
-
if(buf==NULL && buf_size==0){
return 0;
}
unsigned char *extradata;
unsigned int size;
- *data_size = 0;
-
s->flags = avctx->flags;
s->flags2 = avctx->flags2;
s->unrestricted_mv = 1;
if (buf_size == 0)
return 0;
- *data_size = 0;
-
if (truemotion1_decode_header(s) == -1)
return -1;
{
int ret;
+ *got_picture_ptr= 0;
ret = avctx->codec->decode(avctx, picture, got_picture_ptr,
buf, buf_size);
{
int ret;
+ *frame_size_ptr= 0;
ret = avctx->codec->decode(avctx, samples, frame_size_ptr,
buf, buf_size);
avctx->frame_number++;
uint8_t *bytestream= buf;
int i, x, y;
- *data_size = 0;
-
/* special case for last picture */
if (buf_size == 0) {
return 0;
if (buf_size < 16)
return buf_size;
- *data_size = 0;
if (buf[6] == 1) {
/* the chunk contains audio */
*data_size = vmdaudio_loadsound(s, output_samples, p, 0);
GetBitContext gb;
static int counter = 0;
- *data_size = 0;
-
init_get_bits(&gb, buf, buf_size * 8);
if (s->theora && get_bits1(&gb))