On Thu, Jun 23, 2016 at 12:14:47AM +0000, sami.h...@gmail.com wrote:
> From: Sami Hult <sami.h...@gmail.com>
> 
> I changed output=print file handling of metadata filter to accept any ffmpeg 
> url. This way multiple streams can for example be silencedetected and the 
> result directed to different outputs.
> 
> Example:
> 
> ffmpeg -i test.wav -filter_complex 
> "silencedetect=n=-40dB:d=0.1,ametadata=mode=print:file='pipe\:4'" -f null - 
> 4> test.txt
> 
> should have the same effect as
> 
> ffmpeg -i test.wav -filter_complex 
> "silencedetect=n=-40dB:d=0.1,ametadata=mode=print:test.txt" -f null -
> 
> 
> Signed-off-by: Sami Hult <sami.h...@gmail.com>
> ---
>  Changelog                |  1 +
>  libavfilter/f_metadata.c | 43 +++++++++++++++++++++++--------------------
>  2 files changed, 24 insertions(+), 20 deletions(-)

doesnt build:
libavfilter/f_metadata.c: In function ‘print_file’:
libavfilter/f_metadata.c:187:9: error: format not a string literal and no 
format arguments [-Werror=format-security]

also change to documentation is missing

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to