lwlibav: Use DTS for the average framerate calculation if the format contains AVFMT_TS_DISCONT.

Get the average framerate from libavformat if a raw demuxer is used.