Set AVFMT_FLAG_GENPTS flag in format context
Set AVFMT_FLAG_GENPTS flag in format context

This makes sure that `AVPacket.pts` is set even for formats that don't save timestamps (like avi).

The timestamps that this produces are not perfect as it seems to not account for B-frames, but from my testing every HW decoder except MediaCodec can cope with them.

ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework