double ratio;
struct SwrContext *swr;
int64_t next_pts;
- int req_fullfilled;
int more_data;
} AResampleContext;
outsamplesref->nb_samples = n_out;
ret = ff_filter_frame(outlink, outsamplesref);
- aresample->req_fullfilled= 1;
av_frame_free(&insamplesref);
return ret;
}
aresample->more_data = 0;
// Second request more data from the input
- aresample->req_fullfilled = 0;
- do{
- ret = ff_request_frame(ctx->inputs[0]);
- }while(!aresample->req_fullfilled && ret>=0);
+ ret = ff_request_frame(ctx->inputs[0]);
// Third if we hit the end flush
if (ret == AVERROR_EOF) {