Lines Matching refs:frame
379 const AVFrame *frame, int *got_packet_ptr)
388 if (frame) {
389 memcpy(s->buf + NELLY_BUF_LEN, frame->data[0],
390 frame->nb_samples * sizeof(*s->buf));
391 if (frame->nb_samples < NELLY_SAMPLES) {
392 memset(s->buf + NELLY_BUF_LEN + frame->nb_samples, 0,
393 (NELLY_SAMPLES - frame->nb_samples) * sizeof(*s->buf));
394 if (frame->nb_samples >= NELLY_BUF_LEN)
397 if ((ret = ff_af_queue_add(&s->afq, frame)) < 0)
408 /* Get the next frame pts/duration */