mirror of
https://review.haiku-os.org/haiku
synced 2025-02-22 13:38:56 +01:00
This change was introduced by Colin for DVB-T support, however it also breaks the timing of several MP4 files. The code is incomplete and computes slightly to very wrong frame rates (one video plays about twice as fast as needed, another one attempts to play at 30000 FPS). I suspect similar problems would be found when changing the frame rate in DVB-T streams in the same way, so I'm disabling this code for now until a correct solution is found or we manage to use a newer version of ffmpeg (where there is an actual framerate field in the format and it doesn't need to be derived from the time_base anymore). This restores the previous behavior of computing the framerate at the AVFormatReader level, that is, once per stream, rather than once per frame. At the stream level we have enough data to compute an "average" frame rate, and there is also an "r_frame_rate" (real frame rate) which may be usable for this. Not having working DVB-T hardware to experiment with that yet, I'll leave it to others. Fixes #11283 and the last remaining problem in #4512.