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