Improve timestamp handling for H.264 without B frames