flvenc: Check whether seeking back to the header succeeded
authorBjörn Axelsson <bjorn.axelsson@intinor.se>
Thu, 13 Dec 2012 13:48:25 +0000 (14:48 +0100)
committerMartin Storsjö <martin@martin.st>
Thu, 20 Dec 2012 10:37:42 +0000 (12:37 +0200)
commit1eaff98c8320d9ba48fbaec2a558f31f4104de98
tree7d31782060095c897951eed12edac738671220ef
parente30e8e311e14236a979ce061538ec8b8bad8655f
flvenc: Check whether seeking back to the header succeeded

The FLV muxer tries to update the header in write_trailer, which is
impossible if writing to a pipe or network stream. Don't write header
data if seeking to the header fails.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/flvenc.c