When I use Android mediacodec to decode video, I found a strangeness issue. If I config the AMediaCodec_configure without surface window. The decoder delay is increase like 4ms more or less. I use the LiveVideo10ms opensource code for test. This app can show the decoder delay. If I set the AMediaCodec_configure surface window to nullptr, the delay will increase as the following image:
decoder with image show:
decoder without image show:

I have tried many devices and all device with the same result, without the surface window will cause more decoder delay.