#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 -";
{
int ret;
return ret;
}
return ret;
}
if (ret < 0) {
return ret;
}
if (!dec_ctx)
return ret;
}
return 0;
}
{
int ret = 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);
return ret;
}
{
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 ret;
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;
if (ret < 0) {
break;
}
while (ret >= 0) {
break;
} else if (ret < 0) {
}
if (ret >= 0) {
break;
}
while (1) {
break;
if (ret < 0)
}
}
}
}
}
fprintf(stderr,
"Error occurred: %s\n",
av_err2str(ret));
exit(1);
}
exit(0);
}