mediacodec: change missing PTS handling
- Mar 25, 2025
-
-
Thomas Guillem authored
Superseded by the previous commit.
062ca2d9 -
Thomas Guillem authored
From the MediaCodec documentation The presentation timestamp in microseconds for this buffer. This is normally the media time at which this buffer should be presented (rendered). When using an output surface, this will be propagated as the timestamp for the frame (after conversion to nanoseconds). So we should never pass DTS here as it can decrease and increase. That's was what the timestamp_Fifo was working arround. So instead, in case of missing PTS, calculate the PTS from the first DTS.
3101c434 -
Thomas Guillem authored
Will be used by the next commit.
7c69ff29 -
Thomas Guillem authoredaa7f3e5b
-