Skip to content

Commit

Permalink
ff-save: report to stderr on header writing problems
Browse files Browse the repository at this point in the history
  • Loading branch information
hodefoting committed Feb 16, 2016
1 parent 5510aab commit 2963c2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion operations/external/ff-save.c
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,11 @@ tfile (GeglProperties *o)
return -1;
}

avformat_write_header (p->oc, NULL);
if (avformat_write_header (p->oc, NULL) < 0)
{
fprintf (stderr, "'%s' error writing header\n", o->path);
return -1;
}
return 0;
}

Expand Down

0 comments on commit 2963c2a

Please sign in to comment.