avconv: set AVFormatContext.duration from '-t'
authorAndrey Utkin <andrey.krieger.utkin@gmail.com>
Sun, 5 Feb 2012 14:49:14 +0000 (16:49 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 12 Feb 2012 16:15:41 +0000 (17:15 +0100)
commitc22e2ec9d1ffe7fd59be2198520b9a746de62e91
treea73ed164e470a3fc0222bbceaead26ec5a510c39
parent3dffa1b46c6a03c2f58d88da2b83f1a467575a72
avconv: set AVFormatContext.duration from '-t'

Set output files duration to recording_time option, if given.
Rationale: to save duration into metadata for file that is written to
non-seekable output, for formats like FLV (with metadata at beginning).

Signed-off-by: Anton Khirnov <anton@khirnov.net>
avconv.c