return -1;
}
+ if (simp_avio_open(&out, "ffmpeg_output", argv[2]) < 0) {
+ scf_loge("\n");
+ return -1;
+ }
+
if (simp_filter_open(&f) < 0) {
scf_loge("\n");
return -1;
}
- simp_filter_add_input(f, in);
+ simp_filter_add_input (f, in);
+ simp_filter_add_output(f, out);
if (simp_filter_run(f) < 0) {
scf_loge("\n");
return -1;
}
+ if (simp_avio_run(out) < 0) {
+ scf_loge("\n");
+ return -1;
+ }
+
if (simp_avio_run(in) < 0) {
scf_loge("\n");
return -1;