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