#include <unistd.h>
static const char *
filter_descr =
"aresample=8000,aformat=sample_fmts=s16:channel_layouts=mono";
static const char *
player =
"ffplay -f s16le -ar 8000 -ac 1 -";
{
}
}
if (ret < 0) {
}
}
return 0;
}
{
static const int out_sample_rates[] = { 8000, -1 };
if (!outputs || !inputs || !filter_graph) {
}
"time_base=%d/%d:sample_rate=%d:sample_fmt=%s:channel_layout=0x%"PRIx64,
args,
NULL, filter_graph);
if (ret < 0) {
}
if (ret < 0) {
}
if (ret < 0) {
}
if (ret < 0) {
}
if (ret < 0) {
}
&inputs, &outputs,
NULL)) < 0)
outlink = buffersink_ctx->
inputs[0];
args);
}
{
const uint16_t *p = (uint16_t*)frame->
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 got_frame;
if (!frame || !filt_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;
packet0 = packet;
}
got_frame = 0;
if (ret < 0) {
continue;
}
if (got_frame) {
break;
}
while (1) {
break;
if (ret < 0)
}
}
} else {
}
}
fprintf(stderr,
"Error occurred: %s\n",
av_err2str(ret));
exit(1);
}
exit(0);
}