Correctly write SPS & PPS from x264 encoder headers