I want to decode H264NAL unit data to still image data

Please refer to feed_function() in the sample:
Latency issue: nvv4l2h265enc accumulates four images before releasing the first - #3 by DaneLLL

And modify it to feed 128 or 256 Kbytes of h264 stream in each call. It is supposed to work fine.