Skip to content

baseparse: Do not delete and infer the pts/dts in base class.

He Junyan requested to merge He_Junyan/gstreamer:base_pts_fix into main

The current base parse class always deletes the pts/dts set by the sub class and infer them by itself, even when the sub class already sets the pts interpolation to FALSE. For video kind parse elements, this causes problems. For example, the VP9 parse may split a super frame into several leading non-shown frames and one shown frame at last. The base parse always infer and sets the pts to the first non- shown frame and leaving the last shown frame without pts, which is not we expect. Another example, when we split au aligned h264/h265 streams into nals, each nal in that au will have incremental dts, which is not correct either. So, when sub class set pts interpolation to false, the base should trust the pts/dts set by the sub class and should not infer them by itself.

Edited by He Junyan

Merge request reports