ffmpeg.c: fix calculation of input file duration in seek_to_start()
authorPeter Große <pegro@friiks.de>
Sun, 29 Oct 2017 11:08:05 +0000 (12:08 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 5 Nov 2017 02:14:29 +0000 (03:14 +0100)
commit3ddb887c88483ce089b29a30d0d0aa574c8cdc66
tree659600fa4227fcdc18848b5892280c7a14a69177
parentb9cd26f556f4ca0dfe71ffd75a7272782b324753
ffmpeg.c: fix calculation of input file duration in seek_to_start()

Fixes looping files without audio or when using stream_copy, where
ist->nb_samples is not set since no decoding is done.

This fixes ticket #5719 and also fixes an endless loop with the sample
in ticket #6139.

Signed-off-by: Peter Große <pegro@friiks.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
fftools/ffmpeg.c