#include <unistd.h>
const char *
filter_descr =
"aresample=8000,aconvert=s16:mono";
const char *
player =
"ffplay -f s16le -ar 8000 -ac 1 -";
{
int ret;
return ret;
}
return ret;
}
if (ret < 0) {
return ret;
}
return ret;
}
return 0;
}
{
char args[512];
int ret;
"time_base=%d/%d:sample_rate=%d:sample_fmt=%s:channel_layout=0x%"PRIx64,
args,
NULL, filter_graph);
if (ret < 0) {
return ret;
}
NULL, abuffersink_params, filter_graph);
if (ret < 0) {
return ret;
}
&inputs, &outputs,
NULL)) < 0)
return ret;
return ret;
outlink = buffersink_ctx->
inputs[0];
args);
return 0;
}
{
const uint16_t *p = (uint16_t*)samplesref->
data[0];
const uint16_t *p_end = p + n;
while (p < p_end) {
fputc(*p & 0xff, stdout);
fputc(*p>>8 & 0xff, stdout);
p++;
}
fflush(stdout);
}
int main(
int argc,
char **argv)
{
int ret;
int got_frame;
if (!frame) {
perror("Could not allocate frame");
exit(1);
}
if (argc != 2) {
fprintf(stderr,
"Usage: %s file | %s\n", argv[0],
player);
exit(1);
}
while (1) {
break;
got_frame = 0;
if (ret < 0) {
continue;
}
if (got_frame) {
break;
}
while (1) {
break;
if(ret < 0)
if (samplesref) {
}
}
}
}
}
if (dec_ctx)
char buf[1024];
fprintf(stderr, "Error occurred: %s\n", buf);
exit(1);
}
exit(0);
}