pkuvcl / xavs2

An open-source encoder of AVS2-P2/IEEE1857.4 video coding standard
GNU General Public License v2.0
234 stars 66 forks source link

Decoding timestamps do not increase monotonically #23

Open matteo-agnelli opened 5 years ago

matteo-agnelli commented 5 years ago

Describe the bug

In order to proper package (for example, into mp4 files) the encoder output, the encoded frames are expected to be returned in increasing decode timestamp (DTS) order. This is, however, not happening. Or, to be more precise, it seems that DTSs are jumping backwards after a few frames.

To Reproduce

Encode some frames with the 'encoder_encode()' function and observe the values of the 'dts' field of the encoded frames.

Expected behavior

DTSs are expected to increase monotonically (no backwards jump).

Screenshots

PTSs/DTSs trend from a simple test: avs2

Desktop (please complete the following information):