lavc: use packet duration for subtitles if necessary.

Fix trac ticket #2397.
Merge remote-tracking branch 'cigaes/master'

* cigaes/master:
  lavc: use packet duration for subtitles if necessary.

Merged-by: Michael Niedermayer <michaelni@gmx.at>