#define _XOPEN_SOURCE 600
#include <unistd.h>
{
int ret;
return ret;
}
return ret;
}
if (ret < 0) {
return ret;
}
return ret;
}
return 0;
}
{
char args[512];
int ret;
"video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d",
args,
NULL, filter_graph);
if (ret < 0) {
return ret;
}
NULL, buffersink_params, filter_graph);
if (ret < 0) {
return ret;
}
&inputs, &outputs,
NULL)) < 0)
return ret;
return ret;
return 0;
}
{
int64_t delay;
if (delay > 0 && delay < 1000000)
usleep(delay);
}
}
puts("\033c");
for (y = 0; y < picref->
video->
h; y++) {
p = p0;
for (x = 0; x < picref->
video->
w; x++)
putchar(" .-+#"[*(p++) / 52]);
putchar('\n');
}
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\n", argv[0]);
exit(1);
}
while (1) {
break;
got_frame = 0;
if (ret < 0) {
break;
}
if (got_frame) {
break;
}
while (1) {
break;
if (ret < 0)
if (picref) {
}
}
}
}
}
if (dec_ctx)
char buf[1024];
fprintf(stderr, "Error occurred: %s\n", buf);
exit(1);
}
exit(0);
}